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;
PrintUtil::printHeap(heap);
}
void testPoll(priority_queue<int> &heap)
{
int val = heap.top();