Welcome Message

Hi, welcome to my website. This is a place where you can get all the questions, puzzles, algorithms asked in interviews and their solutions. Feel free to contact me if you have any queries / suggestions and please leave your valuable comments.. Thanks for visiting -Pragya.

May 21, 2009

Very very good puzzle .. asked in Adobe interview

Q :Three containers of 15,10 and 6 ltrs capacity. Initially its in configuration (15,0,0). Make it to configuration (0,8,5).


Sol :

15 10 6
15 0 0
9 0 6
9 6 0
3 6 6
3 10 2
3 10 0
13 0 0
7 0 6
7 6 0
1 6 6
1 10 2
11 0 2
11 2 0
5 2 6
5 8 0
0 8 5


No comments: