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
Post a Comment