Qm

Why a 6 and a 4 can never measure 5

You have a 6-litre jug and a 4-litre jug, both unmarked, plus a tap and a drain. You may fill a jug, empty a jug, or pour one into the other until one is empty or the other is full.

A friend insists that with enough patience you can get exactly 5 litres into the 6-litre jug.

Is your friend right? If not, give a watertight argument that it is impossible, no matter how many moves you make.

Show a hint

Track the amount of water in each jug after every move. What do all those amounts have in common? Look for a property that no move can ever destroy.

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

Fifty-three bricks in a six-by-six-by-six boxFour jealous couples cannot cross with a two-seat boatCan a 4 and a 6 minute glass ever measure 7 minutes?Jumping coins cannot build a bigger squareA mouse eating a 3×3×3 block of cheese
All questions →