Data structures and algorithms in X minutes. Code examples from my YouTube channel.
This is the problem 107 from the Project Euler. Initially I did this algorithm as part of a HackerRank challenge. It is an implementation of the Prim's algorithm for finding the minimum weight ...