6 ms·
If quicksort always takes the first element in the array as the pivot, then an array that is already sorted is the worst case.
by rachbowyer 11y ago
If quicksort always takes the first element in the array as the pivot, then an array that is already sorted is the worst case.