Minimum Knight Moves
CodingOnline AssessmentSoftware EngineerReported Mar, 2026
Company question banks are included with the Insider plan.
In an infinite chess board with coordinates from -infinity to +infinity, you have a knight at square [0, 0].
A knight can move in 8 possible ways: [+/-1, +/-2] and [+/-2, +/-1].
Return...