Qm

How long between charging sessions?

A phone is either charging or unplugged each hour, and the next hour depends only on this one:

  • If charging now, it becomes unplugged next hour with probability 0.50.5 (and stays charging with probability 0.50.5).
  • If unplugged now, it becomes charging next hour with probability 0.10.1 (and stays unplugged with probability 0.90.9).

The phone is charging now.

On average, how many hours until it is charging again (its expected return time to the charging 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 until the server is back up?How long between green days?How long until the inbox is empty again?
All questions →