📣 黑五价提前开抢|VIP一年通行证5折,蓝莓、Offer多多同步特惠
查看: 1614| 回复: 4
跳转到指定楼层
上一主题 下一主题
收起左侧

[CareerCup] CareerCup 10.1

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
You have a basketball hoop and someone says that you can play 1 of 2 games.
Game #1: You get one shot to make the hoop.
Game #2: You get three shots and you have to make 2 of 3 shots.
if p is the probability of making a particular shot, for which values of p should you pick one game or the other?

上一篇:位运算:只用一次 + 计算三数的和
下一篇:github新人求指导
🔗
 楼主| BinaryWitch 2012-8-7 16:39:34 | 只看该作者
全局:
发快了?
回复

使用道具 举报

🔗
alva0930 2012-8-8 09:13:18 | 只看该作者
全局:
Winning possibility:
Game #1: p
Game #2: combination(3, 3) * (p^3) + combination(3, 2) * (p^2) * (1 - p) = 1 * (p^3) + 3 * (p^2 - p^3) = 3*p^2 - 2*p^3

If the winning possibility of game #1 is higher, the we should choose game #1:
p > 3*p^2 - 2*p^3
=> 2*p^3 - 3*p^2 + p > 0
=> p * (2p - 1) * (p - 1) > 0
=> 0 < p < 1/2

So we shold pick game #1 if 0 < p < 1/2, and we shold pick game #2 if 1/2 < p < 1.
For p == 0 or p == 1/2 or p == 1, there is no difference to pick game #1 or #2.
回复

使用道具 举报

🔗
parker0203 2012-8-9 04:18:19 | 只看该作者
全局:
BinaryWitch 发表于 2012-8-7 16:39
发快了?

努力追赶中。。
回复

使用道具 举报

🔗
parker0203 2012-8-10 07:49:50 | 只看该作者
全局:
这是赤裸裸的数学概率题啊。。。
p < 0.5 时 game1
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表