Algorithms
Very simple code Modern code Junior friendly Typescript Made with 💛
yarn add @onesy/algorithms
- Factorial
- Fibonacci
- Binary search
- Bubble sort
- Selection sort
- Insertion sort
- Merge sort
- Quick sort
- Radix sort
- Naive search
- LPS
- KMP
- etc.
import { bubbleSort } from '@onesy/algorithms';
const value = [1, 14, 7, 4];
bubbleSort(value);
// [1, 4, 7, 14]
// etc.
Install
yarn
Test
yarn test
Build
yarn build