How many times does a line walk revisit zero?
A token does a symmetric walk on the number line, starting at 0 and continuing forever.
On average, how many times does the token return to 0 over its infinite journey?
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
Random walk on a grid, do you ever get home?Back and forth on a line, return guaranteed?Lost in three dimensions, chance of ever returningThe drunk bird, chance of never coming homeGuaranteed to arrive, yet the average wait is infinite
All questions →