Say you can add a 10 x 30 grid, pick a starting and endpoint, add obstacles. Perform BFS from starting to the endpoint.
Say you can add a 10 x 30 grid, pick a starting and endpoint, add obstacles. Perform BFS from starting to the endpoint.