L584 Drop Eggs II
There is a building ofn
floors. If an egg drops from thek
th floor or above, it will break. If it's dropped from any floor below, it will not break.
You're givenm
eggs, Find k while minimize the number of drops for the worst case. Return the number of drops in the worst case.
Example
Givenm
=2
,n
=100
return14
Givenm
=2
,n
=36
return8
没懂...
Last updated