@amaui/algorithms
v1.0.1
Published
Algorithms
Downloads
31
Maintainers
Readme
Getting started
Add
// yarn
yarn add @amaui/algorithms
// npm
npm install @amaui/algorithms
Algorithms
- Factorial
- Fibonacci
- Binary search
- Bubble sort
- Selection sort
- Insertion sort
- Merge sort
- Quick sort
- Radix sort
- Naive search
- LPS
- KMP
- etc.
Use
import { bubbleSort } from '@amaui/algorithms';
const value = [1, 14, 7, 4];
bubbleSort(value);
// [1, 4, 7, 14]
// etc.
Dev
Install
yarn
Test
yarn test
Prod
Build
yarn build
Docs
Might be soon...