1.0.0 • Published 11 months ago

@onesy/algorithms v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Getting started

Add

yarn add @onesy/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 '@onesy/algorithms';

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

  bubbleSort(value);

  // [1, 4, 7, 14]

  // etc.

Dev

Install

yarn

Test

yarn test

Prod

Build

yarn build