Steps for a wanderer to reach home or the bar
A wanderer is blocks from home (position ) and blocks from the bar (position ). Each minute he steps one block toward home or one block toward the bar, each with probability . He stops when he reaches either home or the bar.
On average, how many steps does that take?
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
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 →