Problems
Contests
Account
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(N
2
)
×
Refer Job