/js-algorithms

How to implement known algorithms in JavaScript

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

ALGORITHMS

Content

  1. Sorting
    1. Bubble sort
    2. Insertion sort
    3. Selection sort
    4. Merge sort
  2. Known algorithms
    1. Hanoi towers

Requirements

In order to run the code, it is needed just NodeJS > 4.

How to run them

For each file execute:

node <path to file>

Example, to run the bubble sort:

node sorting/bubble-sort.js

Feedback and help is welcome

If you can help me and improve the way the algorithms are implemented, your pull requests are welcomed. If you have any problems when executing them or you have any questions about how I coded, feel free to create an issue.