efficient-sorting
v0.1.1
Published
A simple , efficient and es6 way to sort an array using quick sort and merge sort
Downloads
12
Maintainers
Readme
Efficient Sort Function in JavaScript
This project provides a JavaScript implementation of an efficient sorting function that dynamically determines the sorting method based on the characteristics of the input array.
Introduction
The goal of this project is to create a sorting function that intelligently selects the most suitable sorting algorithm based on the size and nature of the input array. By dynamically choosing between quicksort and mergesort, the function aims to optimize performance for different scenarios.
Usage
npm install efficient-sorting
import Sort from 'efficient-sorting'
let array = [10,20,45,2,1,19,17]
console.log(Sort(array))
To use the sorting function in your JavaScript project, follow these steps:
Clone the repository:
git clone https://github.com/IntegerAlex/efficient-sorting.git