The Egg Drop Problem

hard
Unit 21 · Dynamic Programming III0/0 to milestone

You have k eggs and a building with n floors. Find the minimum number of drops needed in the worst case to determine the highest floor an egg survives.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
The Egg Drop Problem · TechGradify