📜 ⬆️ ⬇️

Classic JavaScript algorithms and data structures

Hello to all! I recently launched the JavaScript Algorithms and Data Structures project on GitHub, which contains examples of classical algorithms and data structures written in JavaScript with explanations, examples, and links for further study (in particular, on relevant YouTube videos).

The main objective of the project is to help programmers learn and use algorithms and do it in JavaScript.

In order to make the learning process more understandable, I tried to add graphic illustrations for each algorithm and data structure in order to visually understand what was going on and how this or that algorithm functions.

Also in the root README you will find background information that may be useful when studying. For example:
')

All code is 100% covered by unit tests . This is done not only to keep the code in a healthy state, but also to illustrate the methods and uses of this particular algorithm or data structure (what to do, for example, if the graph is directed in one of the algorithms).

The repository also contains a sandbox . This is a small template of a function and an empty test for it, which should help the programmer to immediately start experimenting with algorithms, instead of re-creating the template code.

At the moment, the following data structures are implemented in the repository:


Additionally , more than 50 popular algorithms are also implemented . Among which there are sorting, search algorithms, algorithms associated with graphs, trees, sets, strings and mathematical calculations. Algorithms are divided into the following groups:


The JavaScript Algorithms and Data Structures repository is under active development. This means that there will be new implementations of algorithms and data structures. However, I hope this repository can be useful right now. Easy coding!

Source: https://habr.com/ru/post/359192/


All Articles