You have three jars which hold 19, 13 and 7 liters of water respectively. The 13 and 7 liter jars are full of water and the 19 liter jar is empty, so there’s a total of 20 liters of water.
Using only the 3 jars, how can you get 2 jars with 10 liters of water each?
Answer
There are 16 steps to arrive at the solution.
| Step | 19 liter jug | 13 liter jug | 7 liter jug |
|---|---|---|---|
| 0 (Start) | 0 | 13 | 7 |
| 1 | 7 | 13 | 0 |
| 2 | 19 | 1 | 0 |
| 3 | 12 | 1 | 7 |
| 4 | 12 | 8 | 0 |
| 5 | 5 | 8 | 7 |
| 6 | 5 | 13 | 2 |
| 7 | 18 | 0 | 2 |
| 8 | 18 | 2 | 0 |
| 9 | 11 | 2 | 7 |
| 10 | 11 | 9 | 0 |
| 11 | 4 | 9 | 7 |
| 12 | 4 | 13 | 3 |
| 13 | 17 | 0 | 3 |
| 14 | 17 | 3 | 0 |
| 15 | 10 | 3 | 7 |
| 16 (End) | 10 | 10 | 0 |