Tying your shoelace on the moving walkway
You are walking to your gate at a constant pace. Part of the corridor has a moving walkway that carries you forward at a fixed speed in addition to your own walking speed.
- You must stop for a few seconds to tie your shoelace. Do you lose less time if you stop while on the walkway or while off it?
- You have enough energy to run (instead of walk) for a fixed number of seconds. Do you gain more time by running on the walkway or off it?
Show a hint
For the shoelace, ask how far you travel during the stop in each case. For the running, ask how much distance the extra speed buys you and how much time that distance would otherwise have cost.
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
Straight across or land opposite?Twenty-five horses, five lanes, the top twoThe bee and the braking trainWhere to stand in the birthday lineThe blind man and the four pillsWhich weighs more, a pound of feathers or a pound of gold?
All questions →