fill the water using jug....
You have 12 liter jug, 8 liter jug, 5 liter jug. 12 liter jug have full of water.
Your goal is finally the 12 liter and 8 liter jug contains 6 liter water and 5 liter jug contains no water. You have only 12 liter water and you are not getting more water from any other resources.
How can you fill the water?
----------------
suresh
Re: fill the water using jug....
Hi,
A - 12L jug
B - 8L jug
C - 5L jug
[U]A B C[/U]
12 0 0
4 8 0
4 3 5
9 3 0
9 0 3
1 8 3
1 6 5
6 6 0
Thanks
Manoj:)