This commit is contained in:
Yudong Jin 2023-02-04 15:58:39 +08:00
parent e5ae3e1cab
commit e1abbcbf23
3 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,7 @@ void testPush(priority_queue<int> &heap, int val)
cout << "\n元素 " << val << " 入堆后" << endl; cout << "\n元素 " << val << " 入堆后" << endl;
PrintUtil::printHeap(heap); PrintUtil::printHeap(heap);
} }
void testPoll(priority_queue<int> &heap) void testPoll(priority_queue<int> &heap)
{ {
int val = heap.top(); int val = heap.top();

View File

@ -1,3 +1,9 @@
/**
* File: my_heap.cpp
* Created Time: 2023-02-03
* Author: what-is-me (whatisme@outlook.jp)
*/
#include "../include/include.hpp" #include "../include/include.hpp"
/* 最大堆类 */ /* 最大堆类 */

View File

@ -1,6 +1,6 @@
/** /**
* File: avl_tree.cpp * File: avl_tree.cpp
* Created Time: 2023-2-3 * Created Time: 2023-02-03
* Author: what-is-me (whatisme@outlook.jp) * Author: what-is-me (whatisme@outlook.jp)
*/ */