Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Puzzle | Rat and Poisonous Milk Bottles

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

You have 4 bottles of milk. One of them is poisonous while the other 3 are non-poisonous. There is a rat which dies exactly after 10 hours of drinking the poisoned bottle. You have a clock that measures time only in hours. Suggest an optimal strategy to identify the poisoned bottle within 24 hours.

Solution:
At the beginning of the first hour feed the rat the Ist bottle. At the start of 2nd-hour feed, the 2nd one and
similarly at the start of 3rd-hour feed, the 3rd bottle. If the rat dies after exactly 10 hrs, the first bottle
is poisonous. If it dies after 11 hours, 2nd one contains poison else the 3rd one is poisonous. In this way,
after exactly 12 hours you would be able to determine the poisonous bottle.

My Personal Notes arrow_drop_up
Last Updated : 18 Jan, 2023
Like Article
Save Article
Similar Reads