Egg Drop With 2 Eggs and N Floors LeetCode solution in Python

1
class Solution:
2
def twoEggDrop(self, n: int) -> int:
3
return ceil(((1 + n * 8) ** 0.5 - 1) / 2)

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0