@bemoje/arr-quick-sort-numeric

Efficient in-place recursive sorting algorithm of numeric values. Avg. Runtime: O(n log n) | Worst: O(n^2)

Usage no npm install needed!

<script type="module">
  import bemojeArrQuickSortNumeric from 'https://cdn.skypack.dev/@bemoje/arr-quick-sort-numeric';
</script>

README

@bemoje/arr-quick-sort-numeric

Efficient in-place recursive sorting algorithm of numeric values. Avg. Runtime: O(n log n) | Worst: O(n^2)

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/arr-quick-sort-numeric
npm install --save @bemoje/arr-quick-sort-numeric
npm install --save-dev @bemoje/arr-quick-sort-numeric

Usage

import arrQuickSortNumeric from '@bemoje/arr-quick-sort-numeric'

arrQuickSortNumeric([5, 2, 3, 1, 4])
//=> [1, 2, 3, 4, 5]

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

arrQuickSortNumeric

Efficient in-place recursive sorting algorithm of numeric values. Avg. Runtime: O(n log n) | Worst: O(n^2)

Parameters
Returns

Array