Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How I Got a 2x Speedup With One Line of Code. Parent comment
Mandatory reference link: http://en.cppreference.com/w/cpp/algorithm/nth_element . Note linear complexity.
There's also std::partial_sort:
http://en.cppreference.com/w/cpp/algorithm/partial_sort
There are no comments on this comment yet.
Mandatory reference link: http://en.cppreference.com/w/cpp/algorithm/nth_element . Note linear complexity.
There's also std::partial_sort:
http://en.cppreference.com/w/cpp/algorithm/partial_sort