sort-types

0.0.7 • Public • Published

Types of sorts

Different types of sorts with their complexity and best/worst case scenarios.

Has the following types of sorts

* Bubble sort
* Selection sort
* Insertion sort
* Merge sort
* Quick sort

Install

npm install 'sort-types';

If you want to play around, you may use the functions like this

import { bubbleSort } from 'sort-types';

bubbleSort([3,1,8,4,2]);

Few upcoming sorts

* Radix sort
* Bucket sort
* Heap sort

FYI

If you are wondering, how does sort() works,
it actually does quick-sort when converted to C++.

Package Sidebar

Install

npm i sort-types

Weekly Downloads

1

Version

0.0.7

License

ISC

Unpacked Size

8.42 kB

Total Files

8

Last publish

Collaborators

  • dalalayan1