Qm

Moves for a robot to dock at the charger

A robot lives in three zones AA, BB, CC arranged in a line. From zone AA it always moves to BB. From zone BB it moves to AA or to CC, each with probability 1/21/2. Zone CC is the charging dock: once there, the robot stays and stops. It starts in zone AA.

On average, how many moves until the robot docks at CC?

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 holeDays until a storm arrives in a weather chainSteps for a token on a square to hit the trapdoorTaking turns to roll the first six
All questions →