Solution: Find below the steps:-
- Step #1: fill the 5 litres container (3L - 0, 5L - 5)
- Step #2: fill the 3 litres container with the filled 5 litres container (3L - 3, 5L - 2)
- Step #3: empty the just filled 3 litres container (3L -0, 5L - 2)
- Step #4: transfer the 2 litres of water left in 5 litres container into 3 litres container (3L - 2, 5L - 0)
- Step #5: fill the 5 litres container (3L - 2, 5L - 5)
- Step #6: fill the 3 litres container (having 2L currently) using just filled 5 litres container (3L - 3, 5L - 4)
this is really good
ReplyDeletevery good.. thanks alot...
ReplyDeleteor u can follow the following procedure...
ReplyDeletei) Assuming both the containers empty, fill the 3 litre container and pour the water in 5 litre container.
so 3L-0, 5L-3
ii) Again fill the 3 litre container and pour the water in 5litre container until it gets full. As 5 litre container contains already 3 litre water, it will have more 2 litre water now (in all 5) and 3 litre container will have 1 litre left in it.
so 3L-1, 5L-5
iii) Throw the water in 5L container and pour all the water from 3litre container to 5L container.
So 3L-0, 5L-1.
iv) now fill the 3 litre container full and pour the water in 5litre container which will give us 4 litres of water.
A more involved version of the problem and the solution can be found here on CSE Blog
ReplyDeleteA more involved version of the problem and the solution can be found here on CSE Blog
ReplyDelete