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
🎥 Video solution / Text Solution of this question is given below:
Using 9 L and 4 L containers, the minimum sequence of fill and empty operations to obtain exactly 6 liters requires 8 moves.