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
- Host: GitHub
- URL: https://github.com/aliaks-ei/js-algorithms
- Owner: aliaks-ei
- Created: 2018-12-28T11:15:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T05:02:28.000Z (over 1 year ago)
- Last Synced: 2025-02-09T21:11:13.660Z (5 months ago)
- Topics: 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
- Language: TypeScript
- Homepage:
- Size: 710 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Algorithms in Javascript
[](https://github.com/alexmozheyko/js-algorithms/actions/workflows/unit-tests.yml)
[](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
```