Nine minutes with a 4 and a 7 minute glass
You have a 4-minute hourglass and a 7-minute hourglass. An egg goes into boiling water right now, and it must come out after exactly 9 minutes.
Describe the sequence of flips. You may flip a glass at any moment, including while it is still running.
Show a hint
Seven plus one plus one is nine. Can you produce a one-minute timer twice?
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
Fifteen minutes with a 7 and an 11 minute glassSeven minutes with a 3 and a 5 minute glassOne minute from a 3 and a 5 minute glassThe bridge with the sleepy guardFifteen minutes with a single rope
All questions →