Hacker News new | ask | show | jobs
by Jiig 3535 days ago
Its worst case is O(n^2) sure, so heap sort would be better if you know that your data would hit the worst case scenario of quick sort every time.