Breadth First Search: Shortest Reach

  • + 0 comments

    I made the same mistake but bought a solution. When i walked through all those nodes, i realised that when my algo has to many 12s in it and the solution much less, that it is not unidirectional and added the other way around into my list as well :)