c++ - partially sorting in decending order -


we have partially sort array in descending order.

i know std::partial_sort in ascending order.

http://en.cppreference.com/w/cpp/algorithm/partial_sort.

is other such function can or fast algorithm so.

the second overload in reference linked takes comparer – pass in instance of std::greater<t>.


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -