Average moves for a beetle to leave a strip
A beetle stands on cell 2 of a strip of cells numbered 0 to 6. Each step it walks to an adjacent cell, right or left with equal probability . It leaves the strip when it reaches cell 0 or cell 6.
On average, how many steps does the beetle take before leaving?
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
Expected steps for a fair walk to hit a wallExpected moves before a lift reaches an end floorMean turns for a pawn to fall off a laneExpected rounds for a fair chase to endExpected packs to collect all three stickers
All questions β