Implement quickSort(numbers). It sorts the array in place in ascending order and returns the same array reference.
Quicksort picks a pivot, rearranges the array so that smaller values come before the pivot and larger values after it, then sorts each side the same way.
const latencies = [120, 35, 35, 410, 8, 97];
const result = quickSort(latencies);
result; // [8, 35, 35, 97, 120, 410]
result === latencies; // true (sorted in place)
Array.prototype.sort.Spotted a mistake or a rights concern? Report an issue