Created
March 1, 2020 18:43
-
-
Save deque-blog/3c5987542c263fc6e66a91e9adf7ce15 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 poor_pigs(buckets: int, iterations: int): | |
pigs = math.log(buckets, iterations + 1) | |
return math.ceil(pigs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment