Professional Documents
Culture Documents
Elephant Problem
Elephant Problem
Elephant Problem
WAJ3105
WAJ3105
To get 7 liters of water: 1. Empty the 5L and 3L container 5L=0L, 3L=0L 2. Take 5L water with 5L container 5L=5L, 3L=0L 3. Pour water from 5L container to 3L container until 3L container is full 5L=2L, 3L=3L 4. Empty the 3L container 5L=2L, 3L=0L 5. Pour the remaining water from 5L container to 3L container 5L=0L, 3L=2L 6. Take 5L water with 5L container 5L=5L, 3L=2L Now we get 3L container with 2L water and 5L container with 5L water. Total 7L of water is in the container.