@aryan02420/sorts

0.0.1 • Public • Published

Sorts

tests npm

different sorting algorithms implemented using generator functions

  • Bubble
  • Selection
  • Insertion

Installation

npm i @aryan02420/sorts

Usage

const {Bubble} = require('@aryan02420/sorts')
let array = [2,5,3,7,1]
let sort = Bubble(array)

console.log(sort.next().value)   // [ 2, 3, 5, 7, 1 ]
console.log(sort.next().value)   // [ 2, 3, 5, 1, 7 ]

Readme

Keywords

Package Sidebar

Install

npm i @aryan02420/sorts

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

5.89 kB

Total Files

9

Last publish

Collaborators

  • aryan02420