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 (and stays up with probability ).
- If down now, it comes up next hour with probability (and stays down with probability ).
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
- 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
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 →