Created
March 3, 2020 16:12
-
-
Save deque-blog/a2ba6b01cb39031e8116f0cf0db72f84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def drop_egg(n: int) -> int: | |
return math.ceil(math.sqrt(2 * n + 0.25) - 0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment