15,946,074 members
See more:
there are 5 pots having different amount of water and total amount of water in all the pots is 10 liters.
now we want to have 2 liters of water in each pot but in minimum no of transactions.
in starting we can have an array showing the initial content of water in each of the pot or any other structure can also be used.
So please suggest me any algorithm or a way so that i can find an algorithm to solve above problem.
Posted
Dr.Walt Fair, PE 25-Aug-11 15:40pm
Can we refill on beer before filling the pots?
AspDotNetDev 25-Aug-11 15:55pm
As I was going to St Ives
I met a man with seven wives
Kits, cats, sacks, wives
How many were going to St Ives?
Chuck O'Toole 25-Aug-11 18:12pm
When you ment the man, was he going in the same direction as you or was he heading in the opposite direction? If opposite, did you avoid the head on collision?

You stated the man had seven wives but did he have any of them with him, did he leave one or more at home?

Thank you for following all safety procedures
AspDotNetDev 25-Aug-11 18:21pm
Chuck O'Toole 25-Aug-11 18:33pm
Wow, thanks, I see I hadn't fully understood the question. I need to contemplate this some more. Somebody pass the pot of beer (or did I misread that too ;-)

## Solution 1

Fill up the pots with water and wait for enough time to pass so there is only 2 liters of water left in the pots.

Sergey Alexandrovich Kryukov 25-Aug-11 23:03pm
Creative :-) my 5.
--SA

## Solution 2

Hint : Think fullest to emptiest. :)