Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/amaui-org/amaui-algorithms

Algorithms for various use cases
https://github.com/amaui-org/amaui-algorithms

algorithm algorithms browser javascript nodejs sorting-algorithms typescript

Last synced: 10 days ago
JSON representation

Algorithms for various use cases

Awesome Lists containing this project

README

        



amaui logo

amaui Algorithms


Algorithms



MIT license    
Production ready    
UMD 2.1kb gzipped    
100% test cov    
Browser and Nodejs


Very simple code    
Modern code    
Junior friendly    
Typescript    
Made with :yellow_heart:


## Getting started

### Add

```sh
yarn add @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

```javascript
import { bubbleSort } from '@amaui/algorithms';

const value = [1, 14, 7, 4];

bubbleSort(value);

// [1, 4, 7, 14]

// etc.
```

### Dev

Install

```sh
yarn
```

Test

```sh
yarn test
```

### Prod

Build

```sh
yarn build
```