Qm

Expected steps for a fair walk to hit a wall

A token sits at position 3 on a line marked 0 to 10. Each step it moves +1 with probability 12\tfrac12 or -1 with probability 12\tfrac12. It stops the moment it reaches position 0 or position 10.

What is the expected number of steps until the token stops?

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

Average moves for a beetle to leave a stripExpected moves before a lift reaches an end floorMean turns for a pawn to fall off a laneExpected rounds for a fair chase to endExpected packs to collect all three stickers
All questions →