JavaScript Repository of TheAlgorithms, which implements various algorithms and data structures in JavaScript.
These are for demonstration purposes only. There are many implementations of sorts in the JavaScript standard library that are much better for performance and security reasons. We also do not provide any api stability guarantee.
Before contributing to this repository, make sure to read our Contribution Guidelines. You can look
at other TheAlgorithms Repositories or the issues with a
help wanted
label for inspiration regarding what to implement. Our maintainers will guide you through
how to make your contribution properly.
The names of the maintainers of this repository is listed in the CODEOWNERS file.
You can find a list of the algorithms currently in the repository in the directory.
Explanations of many of the algorithms can be found in out wiki.