This problem could be very misleading!
Say there are 1000 buckets, 15mins to die ad 60 mins to test, then 1 pig is enough because the pig can drink one bucket in every 1/10 second, then one can judge which one is poisoned according to the time the pig dies.
Strongly suggest replacing arguments 'mins to die' and 'mins to test' by 'rounds to test'. The point is that it is completely redundant to involve the time. Just tell people how many rounds are available.
@mycoding Yes, you are definitely correct. But 'time' is still a useless concept and number of rounds to test is indeed what it means. This is an algorithm problem or math problem, not some sort of word game, why not make the statement of the problem more concise and to the point?
@flamesofmoon I definitely agree that this problem needs clarification. I posted a discussion below to point out the "got you " assumptions in this problem.
This is a math major complexity problem rather than coding one. I posted another discussion just to share my opinion on OJ's label of problem difficulty levels:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.