Home

Awesome

About

This repository contains JavaScript implementations of famous computer science algorithms.

API reference with usage examples available <a href="https://mgechev.github.io/javascript-algorithms/" target="_blank">here</a>.

Development

To install all dev dependencies

Call:

npm install

To setup repository with documentation

npm run doc

This will build the documentation and open it in your browser.

To update .html files with documentation

Just run npm run doc again.

To run tests

Call:

npm run test

This will execute all *.spec.js files.

To deploy documentation site

npm run deploy

This requires you to have commit access to your Git remote.

Contributions

Fork the repo and make required changes. Afterwards, push your changes in branch. The name will be according to the changes you did. Initiate the pull request.

Make sure your editor makes validations according to the .jshintrc in the root directory of the repository.

Before pushing to the repository, run:

npm run build

If the build is not successful, fix your code in order for the tests and jshint validation to run successfully. Then create a pull request.

Contributors

<img alt="mgechev" src="https://avatars1.githubusercontent.com/u/455023?v=4&s=117" width="117"><img alt="AndriiHeonia" src="https://avatars1.githubusercontent.com/u/773648?v=4&s=117" width="117"><img alt="Jakehp" src="https://avatars1.githubusercontent.com/u/1854569?v=4&s=117" width="117"><img alt="lygstate" src="https://avatars3.githubusercontent.com/u/121040?v=4&s=117" width="117"><img alt="mik-laj" src="https://avatars1.githubusercontent.com/u/12058428?v=4&s=117" width="117"><img alt="krzysztof-grzybek" src="https://avatars0.githubusercontent.com/u/6236664?v=4&s=117" width="117">
mgechevAndriiHeoniaJakehplygstatemik-lajkrzysztof-grzybek
<img alt="pvoznenko" src="https://avatars3.githubusercontent.com/u/1098414?v=4&s=117" width="117"><img alt="jettcalleja" src="https://avatars0.githubusercontent.com/u/6356258?v=4&s=117" width="117"><img alt="filipefalcaos" src="https://avatars2.githubusercontent.com/u/9125631?v=4&s=117" width="117"><img alt="kdamball" src="https://avatars3.githubusercontent.com/u/3318312?v=4&s=117" width="117"><img alt="lekkas" src="https://avatars3.githubusercontent.com/u/5211478?v=4&s=117" width="117"><img alt="infusion" src="https://avatars3.githubusercontent.com/u/197742?v=4&s=117" width="117">
pvoznenkojettcallejafilipefalcaoskdamballlekkasinfusion
<img alt="deniskyashif" src="https://avatars2.githubusercontent.com/u/5999271?v=4&s=117" width="117"><img alt="brunohadlich" src="https://avatars2.githubusercontent.com/u/7043013?v=4&s=117" width="117"><img alt="designeng" src="https://avatars0.githubusercontent.com/u/2807469?v=4&s=117" width="117"><img alt="Microfed" src="https://avatars1.githubusercontent.com/u/613179?v=4&s=117" width="117"><img alt="Nirajkashyap" src="https://avatars3.githubusercontent.com/u/4338110?v=4&s=117" width="117"><img alt="pkerpedjiev" src="https://avatars3.githubusercontent.com/u/2143629?v=4&s=117" width="117">
deniskyashifbrunohadlichdesignengMicrofedNirajkashyappkerpedjiev
<img alt="duffman85" src="https://avatars0.githubusercontent.com/u/15054422?v=4&s=117" width="117"><img alt="Xuefeng-Zhu" src="https://avatars0.githubusercontent.com/u/5875315?v=4&s=117" width="117"><img alt="emyarod" src="https://avatars3.githubusercontent.com/u/8265238?v=4&s=117" width="117"><img alt="alexjoverm" src="https://avatars3.githubusercontent.com/u/5701162?v=4&s=117" width="117"><img alt="amilajack" src="https://avatars1.githubusercontent.com/u/6374832?v=4&s=117" width="117"><img alt="BorislavBorisov22" src="https://avatars2.githubusercontent.com/u/20156662?v=4&s=117" width="117">
duffman85Xuefeng-ZhuemyarodalexjovermamilajackBorislavBorisov22
<img alt="brunob15" src="https://avatars2.githubusercontent.com/u/5839627?v=4&s=117" width="117"><img alt="BryanChan777" src="https://avatars0.githubusercontent.com/u/43082778?v=4&s=117" width="117"><img alt="ysharplanguage" src="https://avatars0.githubusercontent.com/u/1055314?v=4&s=117" width="117"><img alt="jurassix" src="https://avatars3.githubusercontent.com/u/1869117?v=4&s=117" width="117"><img alt="fisenkodv" src="https://avatars0.githubusercontent.com/u/1039447?v=4&s=117" width="117"><img alt="contra" src="https://avatars0.githubusercontent.com/u/425716?v=4&s=117" width="117">
brunob15BryanChan777ysharplanguagejurassixfisenkodvcontra
<img alt="liesislukas" src="https://avatars3.githubusercontent.com/u/2733862?v=4&s=117" width="117"><img alt="marrcelo" src="https://avatars3.githubusercontent.com/u/18054556?v=4&s=117" width="117"><img alt="wnvko" src="https://avatars3.githubusercontent.com/u/5990334?v=4&s=117" width="117"><img alt="millerrach" src="https://avatars2.githubusercontent.com/u/12432794?v=4&s=117" width="117"><img alt="xiedezhuo" src="https://avatars3.githubusercontent.com/u/39017209?v=4&s=117" width="117"><img alt="DengYiping" src="https://avatars0.githubusercontent.com/u/12176046?v=4&s=117" width="117">
liesislukasmarrcelownvkomillerrachxiedezhuoDengYiping
<img alt="fanixk" src="https://avatars2.githubusercontent.com/u/921156?v=4&s=117" width="117"><img alt="wlx199x" src="https://avatars1.githubusercontent.com/u/6756730?v=4&s=117" width="117"><img alt="shaunak1111" src="https://avatars3.githubusercontent.com/u/1323960?v=4&s=117" width="117">
fanixkwlx199xshaunak1111

License

The code in this repository is distributed under the terms of the MIT license.