Qm

A frog on stones 0 to 20 aiming for the far bank

A frog sits on stone 9 in a line of stepping stones numbered 0 to 20. Each hop it jumps to an adjacent stone: toward stone 20 with probability 12\tfrac12, toward stone 0 with probability 12\tfrac12. Stone 20 is the far bank (safe) and stone 0 is open water (lost); the frog stops on reaching either.

What is the probability the frog reaches stone 20 before stone 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

  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

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 game character between checkpoints 0 and 8Uphill betting, reaching the goal against the odds
All questions →