Hacker News new | past | comments | ask | show | jobs | submit login

You are assuming qsort is Quicksort and std::sort is not. Both typically use quicksort; but neither is required to.



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: