This repository contains JavaScript implementations of different famous Computer Science algorithms.
API reference with usage examples available here.
Note: not all algorithms are well tested so bugs are quite possible.
To install all dev dependencies use:
npm install
To setup documentation repository:
- go to the parent directory of the root of
javascript-algorithms
; - clone
javascript-algorithms
to directory calledjavascript-algorithms-docs
(git clone [email protected]:mgechev/javascript-algorithms.git javascript-algorithms-docs
); - change current branch in
javascript-algorithms-docs
togh-pages
(git checkout gh-pages
).
To generate documentation call:
gulp jsdocs
inside javascript-algorithms
folder. Content of the javascript-algorithms-docs
will be updated and you will be able to look it in your browser.
To run tests use:
./node_modules/jasmine-node/bin/jasmine-node test/
and all *.spec.js
files will be executed.
Fork the repo and make requred changes. After that push your changes in branch, which is named according to the changes you did. Initiate the PR.
The code in this repository is distributed under the terms of the MIT license.