A game character between checkpoints 0 and 8
In a game, a character stands at checkpoint 5 on a line of checkpoints numbered 0 through 8. Each turn a fair coin decides its drift: forward one checkpoint with probability , back one with probability . The level ends when it reaches checkpoint 8 (victory) or checkpoint 0 (fail).
What is the probability the character reaches checkpoint 8 before checkpoint 0?
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
Chips at a fair table, reaching the cash-out goalMarble on a track, reaching square 12 firstA stock ticking to ten dollars or zero firstA frog on stones 0 to 20 aiming for the far bankUphill betting, reaching the goal against the odds
All questions →