#include <iostream>
#include <algorithm>
#include <vector>
using std::endl;
using std::cout;
using std::vector;
struct MaxHeapCmp
{
bool operator() (const int & lhs, const int & rhs)
{
return lhs < rhs;
}
};
struct MinHeapCmp
{
bool operator() (const int & lhs, const int & rhs)
{
return lhs > rhs;
}
};
void adapt_heap
c++堆排序(STL+自实现)
最新推荐文章于 2024-07-25 17:43:13 发布