@onesy/algorithms
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

onesy logo

onesy 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 💛


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

Package Sidebar

Install

npm i @onesy/algorithms

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

66.1 kB

Total Files

53

Last publish

Collaborators

  • lazareric