Seven minutes with a 3 and a 5 minute glass
You have a 3-minute hourglass and a 5-minute hourglass. You need to time exactly seven minutes, and the clock starts the moment you first flip a glass.
Find the sequence of flips. You may flip a glass at any moment, including while it is still running, and the timing must be exact rather than approximate.
Show a hint
Five plus two is seven. After the 5-glass finishes, is there a glass somewhere that has run for exactly two minutes?
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
Nine minutes with a 4 and a 7 minute glassFifteen minutes with a 7 and an 11 minute glassOne minute from a 3 and a 5 minute glassThe bridge with the sleepy guardFifteen minutes with a single rope
All questions →