Days until a storm arrives in a weather chain
Weather follows a daily chain. From Sunny, tomorrow is Sunny with probability and Rainy with probability . From Rainy, tomorrow is Sunny with probability , Rainy with probability , and Storm with probability . Storm ends the chain. Today is Sunny.
On average, how many days until the storm?
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
Days until a market regime crashesSteps for a bug on a triangle to fall in the holeMoves for a robot to dock at the chargerSteps for a token on a square to hit the trapdoorTaking turns to roll the first six
All questions →