Search⌘ K
AI Features

Solution: Minimum Knight Moves

C# solution for the Minimum Knight Moves problem using the Graphs pattern.

Statement

You are given two integers x and y representing a target coordinate on an infinite chessboard. A knight starts at coordinate [0,0][0, 0] and can move in an L shape: 22 ...