An open API service indexing awesome lists of open source software.

https://github.com/aliaks-ei/js-algorithms

A collection of the most famous algorithms implemented in Typescript
https://github.com/aliaks-ei/js-algorithms

algorithms binary-search bubble-sort caesar-cipher editorconfig-checker eratosthenes-algorithm fibonacci fizz-buzz harmless-ransom-notes javascript jest merge-sort palindrome reverse-array-place reverse-words two-sum typescript unit-tests

Last synced: 3 months ago
JSON representation

A collection of the most famous algorithms implemented in Typescript

Awesome Lists containing this project

README

        

# Algorithms in Javascript

[![unit-tests](https://github.com/alexmozheyko/js-algorithms/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/alexmozheyko/js-algorithms/actions/workflows/unit-tests.yml)
[![editorconfig-check](https://github.com/alexmozheyko/js-algorithms/actions/workflows/editorconfig-check.yml/badge.svg)](https://github.com/alexmozheyko/js-algorithms/actions/workflows/editorconfig-check.yml)

## A collection of the most famous algorithms implemented in Javascript:

1. [Binary search](src/binary-search)
2. [Bubble sort](src/bubble-sort)
3. [Caesar cipher](src/caesar-cipher)
4. [Fibonacci](src/fibonacci)
5. [Fizz Buzz](src/fizz-buzz)
6. [Harmless ransom note](src/harmless-ransom-note)
7. [Maximum stock profit](src/max-stock-profit)
8. [Mean, median, mode](src/mean-median-mode)
9. [Memoized Fibonacci](src/memoized-fibonacci)
10. [Merge sort](src/merge-sort)
11. [Palindrome](src/is-palindrome)
12. [Reverse array in place](src/reverse-array-in-place)
13. [Reverse words](src/reverse-words)
14. [Seive of Eratosthenes](src/seive-of-eratosthenes)
15. [Two sum](src/two-sum)

### Project setup
```
npm install
```

### Run unit tests
```
npm run test:unit
```