Qm

Steps for a token to reach either end of a track

A token sits on position 44 of a track numbered 00 to 1010. Each step it moves one place left or right, each with probability 1/21/2. It is removed when it reaches position 00 or position 1010.

On average, how many steps does it take to be removed?

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

Does a drifting walk ever come home?Guaranteed to arrive, yet the average wait is infiniteThe drunk one step from the cliffThe drunkard who wants to climb one step uphillRuin against an infinitely rich casino
All questions →