avatar
问个google面试题(2)# JobHunting - 待字闺中
B*1
1
careercup上的,看得不是很懂。
You have a digital clock having 24 hr format of HH:MM:SS. You have to find
following probabilities:
1- Occurence of a particular value(let say 05) in SS
2- As 1st point we have to find probabilities for particular value in hour
and minute fields.
3- probalities for other combinations(particular HH:SS or MM:SS values)
You have to answer the probability in terms of digits occurence...for
example in the second's field.. at unit place 10 digits(0-9) are possible,
and in the tens place 6 digits are possible (0-5)
It is not a very straight forward problem. Many different scenarios are
possible(value in the seconds field will change in every 1 min, on the other
hand, the value in the hour field will remain same till 60 min)
Please don't answer ur probabilty in terms of time(as 1/60, 1/24*60) rather
in terms of digits only as described above.
avatar
S*t
2
no need to prepare for this kind of questions if you are applying for SDE
position

【在 B*******1 的大作中提到】
: careercup上的,看得不是很懂。
: You have a digital clock having 24 hr format of HH:MM:SS. You have to find
: following probabilities:
: 1- Occurence of a particular value(let say 05) in SS
: 2- As 1st point we have to find probabilities for particular value in hour
: and minute fields.
: 3- probalities for other combinations(particular HH:SS or MM:SS values)
: You have to answer the probability in terms of digits occurence...for
: example in the second's field.. at unit place 10 digits(0-9) are possible,
: and in the tens place 6 digits are possible (0-5)

avatar
B*1
3
Thanks very much for your tips.
那么这种问题是拿来考谁的啊?

【在 S********t 的大作中提到】
: no need to prepare for this kind of questions if you are applying for SDE
: position

avatar
g*y
4
单从概率的角度,任何一种情况,比如05出现在SS, 跟其它无关,就是0.01。出现在MM
就是1/60, HH就是1/24。
这个有什么很tricky的地方吗?

【在 B*******1 的大作中提到】
: careercup上的,看得不是很懂。
: You have a digital clock having 24 hr format of HH:MM:SS. You have to find
: following probabilities:
: 1- Occurence of a particular value(let say 05) in SS
: 2- As 1st point we have to find probabilities for particular value in hour
: and minute fields.
: 3- probalities for other combinations(particular HH:SS or MM:SS values)
: You have to answer the probability in terms of digits occurence...for
: example in the second's field.. at unit place 10 digits(0-9) are possible,
: and in the tens place 6 digits are possible (0-5)

avatar
c*n
5
一分钟60秒, 为啥05出现在SS的几率是0.01?

MM

【在 g**********y 的大作中提到】
: 单从概率的角度,任何一种情况,比如05出现在SS, 跟其它无关,就是0.01。出现在MM
: 就是1/60, HH就是1/24。
: 这个有什么很tricky的地方吗?

avatar
g*y
6
我看错了,想成1/100秒了,那就是1/60

【在 c****n 的大作中提到】
: 一分钟60秒, 为啥05出现在SS的几率是0.01?
:
: MM

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。