←back to thread

1764 points fatihky | 1 comments | | HN request time: 0.204s | source
Show context
sonoffett ◴[] No.12701639[source]
quicksort is O(n^2) which is definitely not the "best big-O" for sorting.
replies(4): >>12701670 #>>12701718 #>>12701729 #>>12701867 #
1. pkaye ◴[] No.12701867[source]
Quicksort is O(n log n) average and O(n^2) worst case. Heapsort is O(n log n) for both average and worst case.