Interview Question

Interview Parsippany, NJ

An eight gallon container is full and both a three gallon

  container and a five gallon container are empty. Without using any other containers, divide the water into two equal amounts.
Answer

Interview Answer

2 Answers

2

Pour four gallons (half) from the eight gallon container into the five gallon container. Done!!! Four gallons (half) from the eight gallon container. Four gallons (half) from the five gallon container. An eight gallon container is full and both a three gallon container and a five gallon container are empty. Without using any other containers, divide the water into two equal amounts.

Anonymous on Jul 5, 2011
11

- Fill the 5 gallon container completely; you will be left with 3 gallons in the 8 gallon container. - Pour the 5 gallon container into the 3 gallon container. you will be left with 2 gallons in the 5 gallon container. - Pour the 3gallon container back into the 8 gallon and pour the 2gallons of the 5 gallon container back into the 3gallon container. - Use the 8 gallon container which has 6 gallons now and pour its content into the 5 gallon container. you will be left with 1 gallon into the 8 gallon container - Use the 5 gallon container to fill the 3 gallon container which has already 2 gallons. once you do that you will have 4 gallons into the 5 gallon container. - pour the 3 gallons in the 3 gallon container into the 8 gallon container and you will have the 2nd container with the 4 gallons.

Mo on Mar 23, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.