Bloomberg LP Interview Question
Financial Software Developersreally easy way to do it
fill 3 jug empty into 5, then fill 3 again and empty into 5, you will have 1 left in the 3 jug, empty the 5, and put the 1 litre in the 5 litre jug, then fill the 3 litre jug and add it to the one, thats 4 in total
4=3+3-5+3
- Jackie September 15, 2008you pour 3L to the 5L jug twice till 5L jug is full, what is left is 1L in the 3L jug. now empty the 5L jug and pur the 1L into the 5L jug, then measure 3L using the 3L jug and pour it to the 5L jug which has 1L in it.