JS: Data Structures, Algorithms, Patterns, and More
This is an ongoing collection of interesting and/or useful data structures, algorithms, and patterns. (Many are ported over from Sedgewick and Wayne’s Algorithms, 4th ed., and Stoyan Stefanov’s excellent JavaScript Patterns.)
Curious? Clone it, make sure you have Node and npm (plus Mocha installed globally), and grab the dependencies with npm install
. Then run all the Mocha tests with mocha tests/**/*
, or interact with the executable files by navigating into bin/
and running them there—e.g., ./selectionSort 3 1 2
. (You might need to make the bin/
scripts executable on your machine.)
Enjoy!