UNPKG

sorting-algorithms-lib

Version:

sorting-algorithms-lib is a lightweight JavaScript library that provides efficient implementations of various sorting algorithms. Whether you're learning algorithms, benchmarking performance, or building a project that requires sorting, this library has y

9 lines (8 loc) 401 B
/** * Sort an array of numbers or strings using Quick Sort * @param array Complete array to be sorted * @param leftBound Index of left-most element for section to be sorted * @param rightBound Index of right-most element for section to be sorted * @returns Returns sorted array */ export declare function quickSort(array: number[] | string[], leftBound: number, rightBound: number): Array<any>;