0

Water jug problem

Can you give me some implementation for the water jug problem in c++? The input are 3 integers - vessel 1 and 2 volumes and the target litres you want to have in one of the vessels.

12th Jan 2018, 11:02 AM
Martin Veselinov
Martin Veselinov - avatar
1 Answer
0
This site gives a good explanation of your task. https://www.geeksforgeeks.org/two-water-jug-puzzle/
12th Jan 2018, 11:24 AM
John Wells
John Wells - avatar