Qm

A knight from corner to opposite corner

A knight starts on a1 of an empty chessboard.

What is the smallest number of moves it needs to reach h8, the opposite corner? Give a route, prove no shorter route exists, and explain why an odd number of moves is impossible.

Show a hint

Each move changes the row and column by a total of 3 squares at most. How far is a1 from h8 in rows plus columns?

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

A closed knight's tour on a five-by-five boardCan a knight return home in an odd number of moves?The most knights that cannot attack each otherA rook's tour from corner to opposite corner100 prisoners guessing hat colors in a line
All questions →