Hi5 SDE used to get asked the "How Strong is an Egg?"/"Drop Two Bowling Balls from a building" question.
Not sure how this proves anything.
Not sure how this proves anything.
The solution, once found, is simple to prove optimal, but most people don't seem to know how to do that.
Most people don't find it.
> 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.Well, it is trivial with two balls, once you get it, but it's tricky with respect to "just binary search".