Three litres from a 12 and a 5
You have an unmarked 12-litre jug and an unmarked 5-litre jug, a tap, and a drain. The usual moves apply: fill, empty, or pour until the source runs dry or the target is full.
Leave exactly 3 litres in one of the jugs. What is the fewest number of moves?
Show a hint
Twelve is two fives plus two. Fill the big jug with two small jugs and see how much space is left for a third.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Exactly one litre from a 7 and a 5Measure 8 litres with a 10 and a 6Split eight litres in half with a 5 and a 3Fill a tank to exactly 17 litres with two jugsMeasure exactly 6 litres with a 9 and a 4 jug
All questions →