← Intuit questions

Minimum knight moves to reach target square

Filed under Intuit

Given a standard infinite chessboard and the starting coordinates of a knight (startX, startY) and target coordinates (targetX, targetY), find the minimum number of steps required for the knight to…

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 Intuit questions

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