The crazy clock with hands going opposite ways
In a dream, Alice sees a clock whose two hands start together at 12. Over the course of the dream the minute hand goes clockwise round the dial exactly 5 times, and the hour hand goes anticlockwise exactly 4 times, both returning to 12 at the end. Their speeds vary unpredictably, but each hand always moves in its own direction and never stops for long.
How many times do the hands cross during the dream? A crossing means they meet and pass through each other; do not count the start or the end.
Show a hint
Only the angle between the hands matters. Track how many full turns that relative angle makes.
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
💡 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.