Too Long; Didn't Read
I’ve been reading <a href="https://www.manning.com/books/grokking-algorithms" target="_blank">Grokking Algorithms</a>, which I recommend to anyone new to algorithms. It’s basically the introduction I wish I had a few months ago! The examples in the book are written in <a href="https://hackernoon.com/tagged/python" target="_blank">Python</a>, so I’d like to share a <a href="https://hackernoon.com/tagged/javascript" target="_blank">JavaScript</a> version of <a href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm" target="_blank">Dijkstra’s algorithm</a>. This algorithm uses a directed, weighted graph to determine the “cheapest” path to reach a node.