Qm

How long until the server is back up?

A server is either up or down each hour, and the next hour depends only on this one:

  • If up now, it goes down next hour with probability 0.10.1 (and stays up with probability 0.90.9).
  • If down now, it comes up next hour with probability 0.30.3 (and stays down with probability 0.70.7).

The server is up now.

On average, how many hours until it is up again (its expected return time to the up state)?

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

Gas molecules shuffling between two chambersHow long until the machine restocks?How long between green days?How long between charging sessions?How long until the inbox is empty again?
All questions →