Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chengiz
on Jan 31, 2016
|
parent
|
context
|
favorite
| on:
Ask HN: What's the most elegant piece of code you'...
You are assuming qsort is Quicksort and std::sort is not. Both typically use quicksort; but neither is required to.
StephanTLavavej
on Jan 31, 2016
[–]
In C++11, std::sort() is forbidden from being
just
a quicksort, as it's required to have worst-case O(N log N) complexity.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: