Expected moves before a lift reaches an end floor
A test lift starts on floor 5 of a shaft with floors numbered 0 to 12. Each move it goes up one floor with probability or down one with probability . The test ends when it reaches floor 0 or floor 12.
What is the expected number of moves until the test 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
Expected steps for a fair walk to hit a wallAverage moves for a beetle to leave a stripMean turns for a pawn to fall off a laneExpected rounds for a fair chase to endExpected packs to collect all three stickers
All questions →