Jul-28-2023, 08:30 AM
(This post was last modified: Jul-28-2023, 09:28 AM by Gribouillis.)
(Jul-28-2023, 03:54 AM)deanhystad Wrote: Or this:or this
Output:X - - - -^ Z Z Z -
^ Z - - -
^ < < - -
- Z ^ < -
Output:[['0' '1' '2' '3' '4']
['1' 'Z' 'Z' 'Z' '5']
['2' 'Z' '6' '7' '6']
['3' '4' '5' '6' '7']
['4' '5' 'Z' '7' '8']]
For this one, you need to run the Dijkstra starting from (0,0) and without target. The number is d[k].dist