I think use one pig or two pig to solve this problem
Let pig drink one bucket in every one second, then in one minute, it can drink 60 buckets. 15 minutes can drink 900 buckets.
record the time it dead
the time it drinks the bucket.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.