LibraryQuant puzzles

Two Eggs, 100 Floors: The Egg Drop Puzzle

Quant puzzle · medium · members

The question

A building has 100 floors. There is some threshold floor f with the property that an egg dropped from floor f or above breaks, and an egg dropped from any floor below f survives. You do not know f. It could be as low as 1 (the egg breaks even from the first floor) or as high as 101 (the egg never breaks).

You have two identical eggs. An egg that survives a drop is undamaged and can be reused. An egg that breaks is gone.

Find a strategy that determines f, and minimise the number of drops in the worst case.

Hint

Count the worst case of halving first, then look at where those drops went.

The worked solution is for members

You have the question and a hint. It builds the strategy step by step and gives the worst-case number of drops.

Further reading

Related problems

Topics

Also in the library