12 liter 8 liter 5 liter jug make level of 8 liter jug and 12 liter jug same (6 liters )

STEP        0   1   2   3   4   5   6   7
-------------------------------------------
5-Liter     0   0   5   0   3   3   5   0
8-Liter     0   8   3   3   0   8   6   6
12-Liter    12  4   4   9   9   1   1   6

Post a Comment

Previous Post Next Post