1.0.1 • Published 1 year ago

@amaui/algorithms v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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...