Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



You are given two (unmarked) containers of capacity 9 liters and 4 liters, and a huge tank of water. Need is to get a measure of exactly 6 liters of water. A move is either filling a container completely or emptying a container (either fully or partly). The smallest number of moves needed to do this task is





Solution

Using 9 L and 4 L containers, the minimum sequence of fill and empty operations to obtain exactly 6 liters requires 8 moves.


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...