The Egg Drop Problem
约 1 分钟· 本文阅读 次
本页目录
The Egg Drop Problem
There is a building of 100 floors. If an egg drops from the Nth floor or above, it will break. If it's dropped from any floor below, it will not break. You're given two eggs. Find N, while minimizing the number of drops for the worst case
Solution
x(x+1) / 2 = number of floors
相关文章
- 100 Lockers2016-01-16
- Add Digits2016-01-16
- Ants on a Triangle2016-01-16
- The Apocalypse2016-01-16
已恢复到上次阅读位置