GitHunt

Algorithms in Javascript

unit-tests
editorconfig-check

A collection of the most famous algorithms implemented in Javascript:

  1. Binary search
  2. Bubble sort
  3. Caesar cipher
  4. Fibonacci
  5. Fizz Buzz
  6. Harmless ransom note
  7. Maximum stock profit
  8. Mean, median, mode
  9. Memoized Fibonacci
  10. Merge sort
  11. Palindrome
  12. Reverse array in place
  13. Reverse words
  14. Seive of Eratosthenes
  15. Two sum

Project setup

npm install

Run unit tests

npm run test:unit

Languages

TypeScript99.1%JavaScript0.9%

Contributors

Created December 28, 2018
Updated October 5, 2025
aliaks-ei/js-algorithms | GitHunt