Qm

Eight litres from a 5 and a 3

You have a 5-litre jug and a 3-litre jug, both unmarked, and a tap. You need to deliver exactly 8 litres of water to a trough a few steps away.

Everyone knows the famous version of this puzzle where the target is 4 litres, and it takes several fills and pours.

What is the fewest number of moves needed to deliver exactly 8 litres?

Show a hint

Do you actually need any pouring between the jugs?

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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

The angle between the hands at 3:15The average speed that cannot be reachedThe bat and the ballA brick weighs a kilo plus half a brickThe cat and dog race
All questions →