This package has been deprecated

Author message:

use js-sorting-algo instead

@kumarx/js-sorting

1.1.1 • Public • Published

Sorting algorithms in javascript

Currently supported sorting algorithms :

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

Installation & Usage :


npm install @kumarx/js-sorting

 const sort = require('@kumarx/js-sorting');
 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];

/@kumarx/js-sorting/

    Package Sidebar

    Install

    npm i @kumarx/js-sorting

    Weekly Downloads

    0

    Version

    1.1.1

    License

    GPL-3.0

    Unpacked Size

    44.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • kumar_gaurav_mishra