write a program to simulate water jug problem with 2 empty jugs having capacity of 4 gallons each. the program must enlist series of steps that can consequently fill both jugs with 2 gallon water
Asked
Active
Viewed 829 times
0
-
Just google it. https://www.geeksforgeeks.org/water-jug-problem-using-memoization/ – satvik Dec 05 '20 at 03:35
-
1This isn't a question. Are you asking for help on an assignment - if so ask for specific help on the areas you're struggling with and not "please do my work for me" which is how the question comes across? – David Waterworth Dec 05 '20 at 03:44
-
This isn't chegg.com – ssp Dec 05 '20 at 03:54
-
1Water jug problem cannot be solved with two jugs of equal volume. – Yuri Ginsburg Dec 05 '20 at 09:37