Subscribe

Subscribe To Mail

Powered By

I Love:
Blogger

Powered by Blogger

Milk Jar Puzzle

Milk Problem again:
This is a slightly modification of the milk problem commonly asked in interviews. Infosys interview will focus on milk problem and this is the question asked in Infosys interview.
Questions: 
Using 4- gallon and 7-gallon jar fill or take 5 gallons?
Answer:
Fill Milk in 4 gallon first and pour it into 7-gallon jar.
Repeat the same.
Now, 1 gallon of milk remains in 4-gallon jar.
Shift the milk in 7-gallon jar and empty it.
Fill 1 gallon milk from 4-gallon jar into 7-gallon jar.
Fill Milk in 4 gallon and pour into 7-gallon jar making a total of 5 gallons

No comments:

Post a Comment

..