Water jug problem | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
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