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


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.

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