Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kccqzy
on Dec 10, 2019
|
parent
|
context
|
favorite
| on:
O(n^2), again, now in Windows Management Instrumen...
Generally it is preferable to choose the pivot randomly.
hhmc
on Dec 11, 2019
[–]
Sure, and the wikipedia page makes mention of that. But it's not super relevant to the point I'm making about the worst-case complexity of quick sort (which is often misunderstood to be O(n^2)).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: