Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def poorPigs(self, buckets: int, minutesToDie: int, minutesToTest: int) -> int:
- for i in range(0, 11):
- limit = (minutesToTest // minutesToDie + 1) ** i
- if limit >= buckets:
- return i
Advertisement
Add Comment
Please, Sign In to add comment