fill 2 litres of water in 5 and 4 litre mug

There are two 10 litres mug of waters.You have also one 5 litres and another 4 litres of mug.Now pour from any of the mugs and without throwing out any water fill two other mugs with exactly 2 litres of water.

Comments

  1. Please help me know that is it correct,
    let j1&j2 be 10liters jar and j4&j5 be jars of 4&5 liters respectively
    initial
    j1->10,j2->10,j4->0,j5->0
    then,
    j1->6,j2->10,j4->4,j5->0
    j1->6,j2->10,j4->0,j5->4
    j1->6,j2->6,j4->4,j5->4
    j1->6,j2->6,j4->3,j5->5
    j1->10,j2->6,j4->3,j5->1
    j1->10,j2->7,j4->3,j5->0
    j1->10,j2->7,j4->0,j5->3
    j1->10,j2->3,j4->4,j5->3
    j1->10,j2->3,j4->2,j5->5
    j1->10,j2->8,j4->2,j5->0
    j1->10,j2->8,j4->0,j5->2
    j1->6,j2->8,j4->4,j5->2
    j1->6,j2->10,j4->2,j5->2

    ReplyDelete
  2. @Mufaddal yeah your approach is correct but you can reduce few of the intermediate steps..

    ReplyDelete

Post a Comment

Popular posts from this blog

Circular game survival