Minimum knight moves

0
Remix

On a chess board (possibly infinite), return the fewest moves a knight needs to get from one square to another. Use BFS, and consider symmetry or bidirectional BFS to make it faster.

WaymoUberTechnical phone screenLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.