Posts

The Water Jug Challenge : Puzzle

You've got a 4 liter jug and a 9 liter jug. 

You've got a pool of water. 

What is the fewest number of steps it takes to come up with exactly 6 liters of water? 

No, you cannot pour some water into the 9 liter jug and then guess. Nor can you fill each jug up half way or something. You have to be exact. A step is defined as putting water into a jug (not emptying). For instance, filling the 4 liter jug and then pouring it into the 9 liter jug is 2 steps.


The Water Jug Challenge : Puzzle


Click here for SOLUTION! 

The Water Jug Challenge Puzzle : Solution


What was the puzzle?

We've got a 4 liter jug and a 9 liter jug. 

We've got a pool of water. 


We have to find fewest number of steps it takes to come up with exactly 6 liters of water. 


STEPS : 

1. Fill up the 9 liter jug from the pool.         9L -4L - 0

2. Fill up the 4 liter jug from the 9 liter jug.
9L -4L - 4

3. Empty the 4 liter jug into the pool.          9L -4L - 0

4. Fill 4 liter jug again from the 9 liter jug.   9L -4L - 4

5. Empty the 4 liter jug into the pool           9L -4L - 0

6. Transfer 1 liter left 9L jug into the 4L.     9L -4L - 1

7. Fill the 9 liter jug from the pool.            
9L -4L - 1

8. Fill up the 4 liter jug from the 9 liter jug.
9L - 6  4L - 4

That's how we have exactly 6 liters of water in 9 liters jug. 

The Water Jug Challenge Puzzle : Solution
Follow me on Blogarama