This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.

Here is my solution , there are a number of steps , I will describe them by the quantities in the containers:

10 | 18 | 29
---------------
0 | 0 | 0
0 | 18 | 0 <- fill the 18 liters recipient
0 | 0 | 18 <- pour the 18 liters recipient into the 29 liters recipient
0 | 18 | 18 <- fill the 18 liters recipient
0 | 11 | 29 <- pour the 18 liters recipient into the 29 liters recipient
10 | 11 | 19 <- fill the 10 liters recipient
3 | 18 | 19 <- pour the 10 liters recipient into the 18 liters one => 3 liters in the first recipient

Myke Enriq wrote:Here is my solution , there are a number of steps , I will describe them by the quantities in the containers:

10 | 18 | 29
---------------
0 | 0 | 0
0 | 18 | 0 <- fill the 18 liters recipient
0 | 0 | 18 <- pour the 18 liters recipient into the 29 liters recipient
0 | 18 | 18 <- fill the 18 liters recipient
0 | 11 | 29 <- pour the 18 liters recipient into the 29 liters recipient
10 | 11 | 19 <- fill the 10 liters recipient
3 | 18 | 19 <- pour the 10 liters recipient into the 18 liters one => 3 liters in the first recipient

How do you do this

0 | 18 | 18 <- fill the 18 liters recipient
0 | 11 | 29 <- pour the 18 liters recipient into the 29 liters recipient

It should be

0 | 18 | 18 <- fill the 18 liters recipient
0 | 7 | 29 <- pour the 18 liters recipient into the 29 liters recipient