← Expedia questions
CodingMedium

Minimum moves for a knight on a chessboard

Filed under Expedia

Given a square chessboard of size N x N and the starting and ending coordinates of a knight, find the minimum number of moves required for the knight to reach the target position. A knight moves in an…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.