You are viewing a single comment's thread. Return to all comments →
BFS works like a charm here because in unweighted graphs BFS guarantees that the first time you visit a cell it gives the shortest path.
KnightL on a Chessboard
You are viewing a single comment's thread. Return to all comments →
BFS works like a charm here because in unweighted graphs BFS guarantees that the first time you visit a cell it gives the shortest path.