Qm

Bug on a square, steps to the opposite corner

A bug sits at corner A of a square with corners A, B, C, D and edges A-B, B-C, C-D, D-A. Each minute it walks along an edge to one of the two neighboring corners, chosen at random. Corner C is diagonally opposite A.

On average, how many minutes until the bug first reaches corner C?

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

Passing a token around a triangleAnt on a tetrahedron, reaching the far vertexPentagon walk, reaching a non-neighboring cornerOne-way wall, expected steps home from the far endRandom walk across a cube
All questions →