[Solved] How to find the shortest way to destination [duplicate]

[ad_1]

If there are any obstacles, use breadth-first-search algorithm.

If there aren’t, the task is even easier. Just get to the right column and then continue to the right row.

[ad_2]

solved How to find the shortest way to destination [duplicate]