Data Structured58_q2_custom
Custom Order
41d72499-3b7e-49a6-a400-28123b3dddb3.cppC++
1// Loading code...Selected Submission
100 / 100
0.027s
3072 KB
P-QueueOther
Time Comp.
O(log n) for insertion and deletion in priority queues, where n is the number of songs.
Space Comp.
O(n) to store the songs in the priority queues.
Readability
7/10
"The code utilizes priority queues to store and compare `Song` objects based on different criteria (artist/title and count/artist/title). The `priority_queue` is a container adapter built on top of other containers, making it a key data structure here."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #1 | 100 | 11/1/2024 |