Climbing Mountains: an implementation of Dijkstra's algorithm
In my previous post, I described how Dijkstra’s algorithm allows us to make our way through mazes, maps, and other graphs, finding the shortest path between a start and end point.
To illustrate what a code implementation might look like, I will use a challenge from my favourite coding event, Advent of Code.