Navigation Menu

Skip to content

kumar-gaurav-mishra/sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting algorithms in javascript

Currently supported sorting algorithms :

  • quickSort
  • selectionSort
  • bubbleSort
  • mergeSort
  • radixSort
  • insertionSort

Installation & Usage :


npm install js-sorting-algo

 const sort = require('js-sorting-algo');
 sort.quickSort([23, 25, 10, 2, 200]); // [2, 10, 23, 25, 200];
 sort.bubbleSort([23, 25, 10, 2, 200]); // [2, 10, 23, 25, 200];
 sort.selectionSort([23, 25, 10, 2, 200]); // [2, 10, 23, 25, 200];
 sort.mergeSort([23, 25, 10, 2, 200]); // [2, 10, 23, 25, 200];
 sort.radixSort([23, 25, 10, 2, 200]); // [2, 10, 23, 25, 200];
 sort.insertionSort([23, 25, 10, 2, 200]); // [2, 10, 23, 25, 200];

About

Sorting algorithms in javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published