Your question is Egg Dropping Puzzle. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Solve the egg dropping puzzle with two eggs and the given number of floors.
Implement a function that returns the minimum number of drops required in the worst case to determine the highest safe floor when exactly two eggs are available. An egg breaks when dropped above the critical floor and cannot be reused. The function receives a nonnegative integer number of floors and returns an integer.
def two_egg_drop(floors):