Skip to content

Instantly share code, notes, and snippets.

View mushinako's full-sized avatar
🐑
Baaaaah

Mushinako mushinako

🐑
Baaaaah
  • California
View GitHub Profile
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
@mushinako
mushinako / keybase.md
Last active January 12, 2021 04:40
keybase.md

Keybase proof

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: