Interview Question

Software Implementation Consultant Interview

-

Fast Enterprises

If you have unmarked two buckets which you know are 3 and 5 gallons in volume and an unlimited supply of water, how would you get exactly 4 gallons of water?

AnswerAdd Tags

Interview Answers

3 Answers

0

1. Fill 5 gallon bucket 2. Pour water from 5 gallon bucket until 3 gallon bucket is full 3. Empty 3 gallon bucket 4. Pour 2 gallons of water from the 5 gallon bucket to the 3 gallon bucket 5. Pour 5 gallons of water into 5 gallon bucket 6. Pour 1 gallon of water from 5 gallon bucket until 3 gallon bucket is full

Anonymous on

1

Pour water from bucket 1 into bucket 2. If bucket 2 overflows you know that bucket 1 is 5 gallons, otherwise bucket 2 is 5 gallon bucket. Now empty both buckets. Pour 3 gallons into 5 gallon bucket, then refill the 3 gallon bucket. Fill 5 gallon bucket until it is about to over flow (leaving 1 gallon left in the 3 gallon bucket). Empty the 5 gallon bucket and fill with the 1 gallon of water that is in the 3 gallon bucket. Refill the 3 gallon bucket and pour the 3 gallons into the 5 gallon bucket. You now have 4 gallons of water in the 5 gallon bucket.

Zeke on

0

Fill both Buckets exactly half way 1.5 Gal + 2.5 Gal = 4 Gal

Zachary Taylor on

Add Answers or Comments

To comment on this, Sign In or Sign Up.