Data Structured65_q1c_ice_cream

Ice Cream

0f2c5a20-e914-4a8f-b443-8e1e1cb9e5c7.cppC++
1// Loading code...

Selected Submission

100 / 100
0.038s
2360 KB
P-QueueArray
Time Comp.
O(N log N + Q log N)
Space Comp.
O(N)
Readability
5/10

"The code utilizes a priority queue to manage plans with different rates and a vector to store the cumulative balance over time. It also employs binary search (lower_bound) to find the earliest day when the balance exceeds a given price, indicating the core algorithmic concepts used."

History

AttemptPoints Time
Try #131009/9/2024
Try #121009/9/2024
Try #111009/9/2024
Try #101009/9/2024
Try #91009/9/2024
Try #8609/9/2024
Try #71009/9/2024
Try #61009/9/2024
Try #51009/9/2024
Try #41009/9/2024
Try #31009/9/2024
Try #21009/9/2024
Try #109/9/2024