sort-types
v0.0.7
Published
Different types of sorts with their complexity and best/worst case scenarios.
Downloads
7
Maintainers
Readme
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++.