Re:Google Interview Questions
by OmniLarry on Wednesday February 17, 2010 @09:43AM
(#1131583)
For N balls, the other balls can/should be binary searched. It's just a little tricky when it comes to the last two..
[ Parent
| on HN ]
Re:Google Interview Questions
by RiderOfGiraffes on Wednesday February 17, 2010 @10:14AM
(#1131635)
> For N balls, the other balls can/should be binary searched.
Interesting assertion. Can you prove that? Can you give a provably minimal search pattern? > It's just a little tricky when it comes to the last two.
Another interesting assertion. It seems to me that the case of exactly two balls is trivial, once the solution is found.