mgechev / javascript-algorithms

💻 JavaScript implementations of computer science algorithms
https://mgechev.github.io/javascript-algorithms/
MIT License
7.83k stars 1.27k forks source link

Add Kruskal's algorithm for minimal spanning tree #128

Closed maurobringolf closed 6 years ago

maurobringolf commented 7 years ago

This repo is really cool and I would like to contribute 🎉 . I added an implementation of Kruskal's MST algorithm and one of the examples from Wikipedia as test case. I tried to mimic the module style of existing algorithms, let me know if I should change the structure or if anything else is missing.

I am not sure how to add documentation for the website, but am willing to help with it if you tell me what to do.

mgechev commented 6 years ago

@maurobringolf will add a reminder to update the list of contributors soon.

maurobringolf commented 6 years ago

@mgechev So cool, thank you! I will look into more algorithms to add/improve.