Water and Jug Problem
Decide whether a target amount of water can be measured using two jugs with fixed capacities and simple fill, empty and pour actions. The visual walks through the states of the two jugs and marks which amounts they can hold.
Decide whether a target amount of water can be measured using two jugs with fixed capacities and simple fill, empty and pour actions. The visual walks through the states of the two jugs and marks which amounts they can hold.