sorting-algorithms-js

1.0.2 • Public • Published

sorting-algorithms-js

A collection of sorting algorithms implemented in JavaScript.

Installation

npm install sorting-algorithms-js

Usage

import { bubbleSort, quickSort } from 'sorting-algorithms-js';

const arr = [5, 3, 8, 4, 2];
const sortedArray = quickSort(arr);
console.log(sortedArray); // Output: [2, 3, 4, 5, 8]

Package Sidebar

Install

npm i sorting-algorithms-js

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

10.4 kB

Total Files

5

Last publish

Collaborators

  • amyrsaalehi