3 ms·
It fits the tradition established by the quicksort that isn't really a quicksort.
by judk 12y ago
It fits the tradition established by the quicksort that isn't really a quicksort.
- axman6 12y agoThat example does match some high level definitions of quicksort; "pick a pivot element (the first element of the list), split the rest of the list into elements less than and greater than or equal to the pivot, quicksort those recursively, then reassemble the lesser, pivot and then greater elements". But I do agree it's not quicksort as it's usually known with its in place sorting and O(1) extra storage.