algo/di-ling-zh-bfe1b/suan-fa-bi-2da88/ #1478
Replies: 1 comment
-
如果60%case是true的话,直接全输出true就行了,如果按照上面说法60% 概率输出true,40%输出false,假设我们选择什么和答案是什么无关的话,我们选对的概率只有0.60.6+0.40.4=0.36+0.16=0.52<0.6还不如直接以概率1输出true.。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
algo/di-ling-zh-bfe1b/suan-fa-bi-2da88/
Info 数据结构精品课 (https://aep.h5.xeknow.com/s/1XJHEO) 和 递归算法专题课 (https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员! 首先回答一个问题,刷力扣题是直接在网页上刷比较好还是在本地 IDE 上刷比较好? 如果是牛客网笔试那种自己处理输入输出的判题形式,一定要在 IDE 上...
https://labuladong.gitee.io/algo/di-ling-zh-bfe1b/suan-fa-bi-2da88/
Beta Was this translation helpful? Give feedback.
All reactions