问个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.
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.