Complete · 30 Days14 / 143
MediumBrain Teasers
Water Jugs
Google
You have a 3-gallon jug and a 5-gallon jug and a tap. How do you measure exactly 4 gallons?
Approach
Track the contents of each jug after every pour.
Getting 2 gallons stranded in the big jug is the key step.
Related problems
Two Eggs, 100 FloorsMediumHorse Race — Top 3Medium100 LockersMediumPoisoned WineMediumBridge CrossingMediumScrewy PiratesHard
More in Brain Teasers.