Qm

Days until a storm arrives in a weather chain

Weather follows a daily chain. From Sunny, tomorrow is Sunny with probability 1/21/2 and Rainy with probability 1/21/2. From Rainy, tomorrow is Sunny with probability 1/41/4, Rainy with probability 1/41/4, and Storm with probability 1/21/2. 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

  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

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 →