mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-01 20:12:07 +08:00
Update #320
This commit is contained in:
@ -12,6 +12,7 @@ void testPush(priority_queue<int> &heap, int val)
|
||||
cout << "\n元素 " << val << " 入堆后" << endl;
|
||||
PrintUtil::printHeap(heap);
|
||||
}
|
||||
|
||||
void testPoll(priority_queue<int> &heap)
|
||||
{
|
||||
int val = heap.top();
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
/**
|
||||
* File: my_heap.cpp
|
||||
* Created Time: 2023-02-03
|
||||
* Author: what-is-me (whatisme@outlook.jp)
|
||||
*/
|
||||
|
||||
#include "../include/include.hpp"
|
||||
|
||||
/* 最大堆类 */
|
||||
|
||||
Reference in New Issue
Block a user