I hereby claim:
- I am Mushinako on github.
- I am mushinako (https://keybase.io/mushinako) on keybase.
- I have a public key whose fingerprint is C7FA 1BC6 07E4 7961 6A0C BBB5 66EE DF03 E0CF 0045
To claim this, I am signing this object:
from typing import Iterable, List | |
def max_floor(eggs: int, tries: int) -> int: | |
if eggs == 1: | |
return tries | |
elif eggs == 2: | |
return tries * (tries + 1) // 2 | |
else: | |
return sum(max_floor(eggs-1, tries-i) for i in range(1, tries)) + tries |
I hereby claim:
To claim this, I am signing this object: