Open In App

Puzzle | Water Jug Problem

Last Updated : 18 Jan, 2023
Like Article

We have two water jugs, one measures 4 Gallons (4G) while the other measure 9 Gallons (9G). But there is no measuring label mentioned on either of these two jugs i.e. we cannot know the exact amount filled in the jug. Now, assuming there is an infinite amount of water supply, can we measure all 1G, 2G, 3G…….. upto 9G using these unmarked jugs.
Hint: We can empty the jugs, and transfer water from one jug to other.

Yes, we can measure all from 1G to 9G.

  • 4G: Simply fill the 4G jug completely.
  • 9G: Simply fill the 9G jug completely.
  • 5G: Fill the 9G jug fully. Now transfer water from 9G to 4G till 4G gets full. Now 9G will have 5Gallons of water. Hence, measured 5G
  • 1G: Fill the 9G jug to its maximum. Now transfer water from 9G to 4G till 4G gets full. Empty the 4G jug. Again transfer from 9G to 4G till 4G gets full. Now we are left with 1G in 9G jug.
  • 8G: Fill up 4G and empty it into 9G. Again fill up 4G and empty it into 9G. Now 9G has 8 Gallons of water.
  • 3G: Firstly, fill the 4G jug and empty it into 9G jug. Again fill 4G and empty it into 9G.
    Again repeat the same procedure. So now 4G jug will have 3G amount of water and 9G will be full. Hence, measured 3G.
  • 7G: Measure 3G as mentioned above. Now transfer this 3 Gallons of water from 4G to 9G. And now completely fill 4G jug. Now we have 4 Gallons in 4G jug and 3 Gallons in 9G jug. Hence, measured 7G.
  • 2G: As mentioned above, firstly measure up to 7G. The scenario is that 4G jug is full and 9G jug has 3G water. Transfer the water from 4G to 9G so that 4G becomes empty and 9G measures 7G. Now completely fill 4G and then start transferring water to 9G till 9G becomes full. Now we will be left with only 2G in 4G jug. Hence, measured 2G
  • 6G: Repeat the same procedure till measuring 2G as stated above. Now empty the 9G jug and transfer 2G from 4G jug to 9G jug. And now fill up the 4G jug completely. Hence, we have 4 Gallons in 4G jug and 2 Gallons in 9G jug. Thus measuring 6G.

Previous Article
Next Article

Similar Reads

Puzzle 54 | Fill the Jug
There are two jugs each of 4 and 3 liters respectively , without any measuring marks. how many minimum steps are required to have 2 liters of water into the 4 litre jug (the jugs can be filled any number of times with water, and they can be emptied any number of times). Note that this puzzle is different from the one discussed here. Here we need 2
2 min read
Puzzle | Growing Water Lilly
Question: In the middle of a round pool lies a beautiful water lily. The water lily doubles in size every day. After exactly 20 days, the lily will cover the complete pool. After how many days will the water lily cover half of the pool? Answer: Because the water lily doubles its size every day and the complete pool is covered after 20 days, half of
2 min read
Puzzle | The Water MasterChef
A specific water tank requires precisely 7L of water. The problem arises as you do not have glass to measure exactly 7L. You have two glasses of 4L and 5L. How can it be accomplished? [caption width="800"]Two glasses of 4L and 5L, need to fill up the tank of 7L.[/caption] Solution: The above precision can be achieved easily. First, pour water into
1 min read
Puzzle | Cylindrical Glass and Water Measurement
Suppose you are in an empty closed room with a glass of water without using any measuring tool how will you identify whether the water in the glass is half-filled or less than half-filled or more than half-filled? Solution: Hold the glass incline such that the water is just about to spill and observe the water level if water goes below the apparent
1 min read
Puzzle | Taking 2-2 Liters of Water
The premise of the puzzle is as follows: You have two bottles that are packed with 10 liters of water each. Your goal is to take 2 liters of water in two empty bottles of 4 liters and 5 liters, respectively. However, there is a catch – you can only use four bottles that are packed with 10 liters of water, packed with 10 liters of water, an empty bo
2 min read
Puzzle | Distribute the Water
Problem Statement: Suppose there are three containers; container I (3L), container II (5L), container III (8L). Container III is filled with 8L of water while the other two are empty. With the help of these 3 containers, how to distribute the water in equal volumes i.e. 4L in container II and, 4L in container III. Consider there is no loss of water
2 min read
Puzzle | Man fell in well Puzzle
A man fell in a 50m deep well. He climbs 4 meters up and slips 3 meters down in one day. How many days would it take for him to come out of the well? Answer: 47days Explanation: On the first day, the man climbs 4 meters up and slips 3 meters down, therefore he only climbs 1 meter up totally.On the second day, again he climbs 1 meter up, so the tota
1 min read
A nonstop express going sixty miles an hour starts from Bustletown for Ironchester, and another nonstop express going forty miles an hour starts at the same time from Ironchester for Bustletown. How far apart are they exactly an hour before they meet?Because the two stations cannot be found on any map or gazetteer, we cannot state the distance betw
1 min read
Puzzle | The Einstein's Puzzle
Einstein's puzzle is a famous logic puzzle that was supposedly created by Albert Einstein as a boy. The puzzle goes as follows:There are five houses in a row, each with a different color. In each house lives a person of a different nationality. The five owners drink a certain type of beverage, smoke a certain brand of cigar, and keep a certain pet.
4 min read
Puzzle 15 | (Camel and Banana Puzzle)
A person has 3000 bananas and a camel. The person wants to transport the maximum number of bananas to a destination which is 1000 KMs away, using only the camel as a mode of transportation. The camel cannot carry more than 1000 bananas at a time and eats a banana every km it travels. What is the maximum number of bananas that can be transferred to
4 min read
Article Tags :
Practice Tags :