This question asked to me in cognizant interview, I answered this question you guys try to answer it.
Having an infinite supply of water and two containers, one for 3 liters and one for 5 liters, how would you measure 4 liters?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Take water in 5 litre container from water supply. (5 litre container now has 5 litres and 3 litre container has 0 litres) 2. Pour water into 3 lit container from 5 litre container and empty 3 litres container. (Now 5 litre container has 2 litres and 3 litre container has 0 litres). 3. Pour the 2Read more
1. Take water in 5 litre container from water supply. (5 litre container now has 5 litres and 3 litre container has 0 litres)
2. Pour water into 3 lit container from 5 litre container and empty 3 litres container. (Now 5 litre container has 2 litres and 3 litre container has 0 litres).
3. Pour the 2 litres from 5 litre container to 3 litre container. (Now 5 litre container has 0 litres and 3 litre container has 2 litres).
4. Take water in 5 litre container and pour 1 litre to 3 litre container as it already has 2 litres.
5. Now 5 litre container will have 4 litres of water.
See less1) First fill the 5 litres container and pour the water into 3 litres container. 2) Then 3 litres container contains 3 litres of water, remove that water from that container. 3) The 5 litres container contains 2 litres of water, that water pour into 3 litres container. 4) Again fill the 5 litres coRead more
1) First fill the 5 litres container and pour the water into 3 litres container.
2) Then 3 litres container contains 3 litres of water, remove that water from that container.
3) The 5 litres container contains 2 litres of water, that water pour into 3 litres container.
4) Again fill the 5 litres container and pour the water into 3 litres container which having already 2 litres then we can fill only one litre into 3 litres container. Then 4 litres remains in the 5 litres container.
See less