Max-heap && Min-heap && push_heap
摘要:
最大堆:make_heap(vi.begin(),vi.end())#include #include #include using namespace std;int main(){ int ia[9] = {0, 1, 2, 3, 4, 8, 9, 3, 5}; make_heap(... 阅读全文
posted @ 2016-01-15 20:00 `Elaine 阅读(378) 评论(0) 推荐(0) 编辑