Problems > Knight's Journey > Editorial

Knight's Journey — Solution & Editorial

Back to the Problem

BFS over board squares with the eight knight moves.

Complexity: O(N2)