Data Structureds03_heap_erase
Heap Erase
5315934a-38be-48be-acc9-802ccc8d36d8.cppC++
1// Loading code...Selected Submission
100 / 100
0.001s
1588 KB
P-QueueHeap
Time Comp.
O(log n) for push and pop, O(n) for erase
Space Comp.
O(n)
Readability
6/10
"The code implements a priority queue data structure with custom comparator functionality. It includes methods for insertion, deletion, and accessing the top element, all core operations of a priority queue. The main function interacts with the priority queue based on user input."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #2 | 100 | 11/1/2024 |
| Try #1 | 30 | 11/1/2024 |