Water jug problem
And I found this water jug problem when I’m reading Number Theory. It is interesting. Let me start by defining the problem: Assume we have 2 jugs. Jug1 can contains 3 galons water, jug2 can contains 5 galons water. We can pour water into jug1 and jug2, empty 2 jugs, or we can pour water between 2… Read More »