由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个google面试题(2)
相关主题
问个google面试题几道面试题
问个google面试题请教一道面试题(概率统计)
问个MapReduce面试题MS Campus Interview Question (SDE position)
问个复杂度:leetcode题目 Restore IP Addresses问一道google面试题
问个Amazon面试题Find shortest substring that is only occurring once. in Given String(Medallia面试题)
请教一道G家面试题generate unique integer ID from columns in SQL table
Google HR Boss explains why interviews are useless[合集] 面试算法题一问
一道面试题报个微软的Offer
相关话题的讨论汇总
话题: ss话题: digits话题: mm话题: hh话题: value
进入JobHunting版参与讨论
1 (共1页)
B*******1
发帖数: 2454
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.
S********t
发帖数: 3431
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)

B*******1
发帖数: 2454
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

g**********y
发帖数: 14569
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)

c****n
发帖数: 105
5
一分钟60秒, 为啥05出现在SS的几率是0.01?

MM

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

g**********y
发帖数: 14569
6
我看错了,想成1/100秒了,那就是1/60

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

1 (共1页)
进入JobHunting版参与讨论
相关主题
报个微软的Offer问个Amazon面试题
random(5) generate random(7)请教一道G家面试题
面试题分享及感想Google HR Boss explains why interviews are useless
h1b要求补材料-列举与CS相关的课程一道面试题
问个google面试题几道面试题
问个google面试题请教一道面试题(概率统计)
问个MapReduce面试题MS Campus Interview Question (SDE position)
问个复杂度:leetcode题目 Restore IP Addresses问一道google面试题
相关话题的讨论汇总
话题: ss话题: digits话题: mm话题: hh话题: value