The Wayback Machine - https://web.archive.org/web/20241228134447/https://www.geeksforgeeks.org/measuring-6l-water-4l-9l-buckets/
Open In App

Measuring 6L water from 4L and 9L buckets

Last Updated : 18 Jan, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Question: Suppose you have a 4 liter jug and a 9 liter bucket . The buckets have no measurement lines on them either. How could you measure exactly 6 liter using only those buckets and you have as much extra water as you need ?

Solution:
Consider 2 buckets one 4L and other 9L. : Bucket 1 (4L) and Bucket2 (9L)

First fill the 9L bucket fully. : 0 L and 9 L

Pour the water into 4L bucket. : 4 L and 5 L

Empty the 4L bucket. : 0 L and 5 L

Repeat this twice. : 4 L and 1 L

Now you will left with 1L water in the 9L bucket : 0 L and 1 L

Now pour this 1L into the 4L bucket : 1 L and 0 L

Refill the 9L bucket. : 1 L and 9 L

Now pour the water from 9L into the 4L bucket until it fills up. : 4 L and 6 L

Now you are left with 6 L water in the 9L bucket.


Next Article
Practice Tags :

Similar Reads

three90RightbarBannerImg