Interview Puzzles

Stack of 'must-know' interview puzzles !

Puzzle: The Jug Puzzle

3892 views
You have a five quart jug and a three quart jug, and an unlimited supply of water (but no measuring cups)  How would you come up with exactly four quarts of water? NOTE: The jugs are oddly shaped, such that filling up exactly "half" of the jug would be impossible

0 Vote Up   |   Post Answer   |   View Solution

By  Vineet JhunJhunwala





Rajat Kumar Rajat Kumar   5 years ago

Step 1: fill 3 quart jug & pour the water from it to the 5 quart jug
step 2: Again fill 3 quart jug & pour the water from it to the 5 quart jug which is partially filled with 3 quart(i.e we have 1 quart left in 3 quart jug. )
step 3: Empty the 5 quart jug and pour the left 1 quart that was left in jug of 3 quart capacity into the empty 5 Quart jug.
step4: fill 3 quart jug again and pour the water into 5 quart jug.(1+3=4)

Reply    2 Vote Up   0 Vote Up