Qm

Steps for a token on a square to hit the trapdoor

Four corners of a square are labeled 1,2,3,41, 2, 3, 4 in order, with edges 1 ⁣ ⁣21\!-\!2, 2 ⁣ ⁣32\!-\!3, 3 ⁣ ⁣43\!-\!4, 4 ⁣ ⁣14\!-\!1. A token steps to one of the two neighboring corners with equal probability each move. Corner 44 is a trapdoor: the token stops when it lands there. It starts at corner 11, which is adjacent to the trapdoor.

On average, how many steps until the token falls through corner 44?

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 chargerDays until a storm arrives in a weather chainTaking turns to roll the first six
All questions →