The Wayback Machine - https://web.archive.org/web/20250114152806/https://www.geeksforgeeks.org/puzzle-rat-and-poisonous-milk-bottles/
Open In App

Puzzle | Rat and Poisonous Milk Bottles

Last Updated : 15 Jul, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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 the 2nd-hour feed, the 2nd one and similarly at the start of 3rd-hour feed, the 3rd bottle. The first bottle is poisonous if the rat dies after exactly 10 hrs. If it dies after 11 hours, 2nd one contains poison, or else the 3rd one is poisonous. In this way, after exactly 12 hours you would be able to determine the poisonous bottle.

Puzzle | Rat and Poisonous Milk Bottles

Get 90% Course fee refund on completing 90% course in 90 days! Take the Three 90 Challenge today.

The next 90 Days of focus & determination can unlock your full potential. The Three 90 challenge has started and this is your chance to upskill and get 90% refund. What more motivation do you need? Start the challenge right away!


Next Article
Article Tags :
Practice Tags :

Similar Reads

three90RightbarBannerImg