December 13th, 2005, 8:34 am
Hi Aym,Let me work with an example, i probably didn't explain it properly. Lets say the number of floors is 105. Then you drop the first egg from floors 14, 27, 39, 50, 60, 69, 77, 84, 90, 95, 99, 102, 104, 105. So now if the egg were to break at 90 we know the egg hasn't broken at 84 so we drop the second egg from floors 85, 86, 87, 88, 89. So given any situation we need at most 14 drops to find out the floor from which the egg will break.