Deep pockets, expected rounds from 40 toward 100
You start at 40 points with walls at 0 and 100. Each round you win or lose 1 point on a fair coin. You stop at 100 points or at 0 points.
On average, how many rounds until the game ends?
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
How long does a losing streak at the casino last?How many fair bets until the game ends?Balanced start, rounds to finish from the midpointShort fair game, expected rounds from 5 up to 8Two players, 6 versus 9 dollars, expected number of rounds
All questions β