You are given just three eggs, and access to a 100-storey building. All 3 eggs are identical.
The aim is to find out the highest floor from which an egg will not break when dropped out of a window from that floor. If an egg is dropped and does not break, it is undamaged and can be dropped again. However, once an egg is broken, that’s it for that egg.
If an egg breaks when dropped from floor n, then it would also have broken from any floor above that. If an egg survives a fall, then it will survive any fall shorter than that.
Adopting best strategy what is the absolute minimum number of egg drops you need to reach the solution given any and every possible scenario?
Details and Assumptions :
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For super strong eggs II we started from n, then n-1, n-2, n-3 and so on.
For this one, since this has three eggs, we do it somehow like powers of two, like this: n, n-1, n-1-2, n-1-2-3, so on.
n=100, so the first egg drops at 16,44,65,80,90,96,99,100
If the egg breaks at 16th floor, using the method to solve super strong eggs II, we need 7 drops 44th floor, 9 drops 65th floor, 9 drops All others, 9 drops 100th floor, 8 drops
So the answer is 9
You may ask why will all the other floors require 9 drops, and this is because the numbers we minus.
First think if it breaks at 99th floor. We dropped 7 times. We still have two more levels, 97 and 98. Drop at those 2 floors. Then think if it breaks at 96th floor. We dropped 6 times. We have 5 levels. Using the method to solve super strong eggs II, we need to drop 3 times. 6+3=9 Then think if it breaks at 90th floor. We dropped 5 times. We have 9 levels. Using the method to solve super strong eggs II, we need to drop 4 times. 5+4=9
See the pattern? For all the levels, there are nine drops since we minus triangular numbers. And we're done.