Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You'd think, but one of the world's most popular C++ stdlib implementations (Clang's libcpp) shipped the actual Quicksort, which has O(N squared) worst case as its default sort until just a few years ago. Because the typical case for Quicksort is fast, so, most C++ programmers didn't notice.

And I really do mean just a few years. Like, Joe Biden was President.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: