How do you solve a jug problem?
Table of Contents
How do you solve a jug problem?
Solution 1 (Always pour from m liter jug into n liter jug)
- Fill the m litre jug and empty it into n liter jug.
- Whenever the m liter jug becomes empty fill it.
- Whenever the n liter jug becomes full empty it.
- Repeat steps 1,2,3 till either n liter jug or the m liter jug contains d litres of water.
How do you play the jugs puzzle game?
Drag and drop the jugs left or right to fill, transfer or empty them. You have 2 jugs of different sizes & an unlimited supply of water. Can you measure the exact amount of water needed? YOU WIN!
How do you get 2L water from a 5L and 3L bucket?
fill the 5L bucket, pour into the 3L. You now have 2 L left in the 5L bucket. Now empty the 3L, and pour the 2L from the 5L into the 3L. Fill the 5L, then pour 1L from the 5L to fill the 3L.
How do you get exactly 4 pints of water in one jug?
Originally Answered: Given an 8-pint jug full of water and two empty jugs of 5- and 3-pint capacity, get exactly 4 pints of water in one of the jugs by completely filling up and/or emptying jugs into others? Fill up the 5-pint jug. Fill up the 3-pint jug with the water from the 5-pint jug.
How many pints of water are in a 3 pint container?
Take 3 pint of water from 8 pints container and empty it in container of 5 pints. There is capacity for 2 more in that vessel. Repeat the process and fill the 5 pint to full. Then we’ll have 1 pint of water in 3 pint container.
How do you make a water softener with 5 pints?
Take 5 pint jug and fill it completely with water and now fill that 3 pint jug by 5 pint jug. When it become full, empty it in that 8 pint jug, so now you have 2 pint water in 5 pint jug and an empty 3 pint jug. Now again pour remaining 2 pint of water into that empty 3 pint jug, so it became full of 2 pint of water with 1 pint empty.
How to fill and empty a jug of water?
Depending upon which jug is chosen to be filled and which to be emptied we have two different solutions and the minimum among them would be our answer. Fill the m litre jug and empty it into n liter jug. Whenever the m liter jug becomes empty fill it. Whenever the n liter jug becomes full empty it.