How to find the shortest path in 2D maze array, where direction is changed only when obstacle is hit

前端 未结 0 835
孤城傲影
孤城傲影 2021-01-25 00:57

I am struggling to implement an algorithm that resolves a 2D maze array by only changing a direction once a wall or another obstacle is hit.

What it needs to do is, given

相关标签:
回答
  • 消灭零回复
提交回复
热议问题