Microsoft Interview Question
Software Engineer / DevelopersThese are some of the hints. We can formulate the result with it.
> 1st and 3rd should be even and should have A in it.
> 2nd should be odd.
..>> multiple of 5 and odd will have any number ending in 5. So if 2nd is B then 3rd should be C with a number ending in 6(and multiple of 9 eg: 36)
..>> multiple of 9 and odd implies 3rd will be multiple of 5 and even. this means multiple of 9 with number ending in 9( such as 9, 99 etc)
answer is C & A.
first interval is 25-27 then 34-36 then 54-56.
in second n third its C and A
The reason is that, first, in the 3 consecutive seconds, only one could be even, otherwise, A would bounce twice. And we always need to look at seconds that is around 9*(2k+1). so , 1st is 8, 9, 10,2nd is 25-27 and then 63, 64, 65
For the first interval (which is not being asked for), A would hit at 8 seconds (4 bounces, C would hit at 9 seconds (first bounce) and B would hit at 10 seconds (2nd bounce). For second interval, B bounces at 25, A at 26 and C at 27 (there is no interval before that when C hits at 18 because B and A are at 20 and nothing is at 19 seconds). For the 3rd interval, A bounces at 34, B at 35 and C at 36.
- Frank January 30, 2011So the answer is C and C.