Y
Hacker News
new
|
ask
|
show
|
jobs
by
dekhn
3539 days ago
quicksort is O(nlogn) average case, and O(n
2) on already sorted arrays.
1 comments
bvinc
3539 days ago
Just a nitpick: There are versions of quicksort that perform well, O(n*log n), on already sorted data. But there is always some worst case scenario where it can be O(n^2).
link