Data Structured65_q1a_delivery
Food Delivery
663773b3-eb40-4d1e-9855-ceb1ba916a02.cppC++
1// Loading code...Selected Submission
100 / 100
0.048s
6860 KB
DequeHashMapArray
Time Comp.
O(N log N + M)
Space Comp.
O(M)
Readability
5/10
"The code utilizes a queue to manage first and last price data, and an unordered map to store the query count for each price. It also uses a vector for sorting and processing prices, making these the core algorithmic components."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #9 | 100 | 8/29/2024 |
| Try #8 | 100 | 8/29/2024 |
| Try #7 | 0 | 8/29/2024 |
| Try #6 | 100 | 8/29/2024 |
| Try #5 | 100 | 8/29/2024 |
| Try #4 | 0 | 8/29/2024 |
| Try #3 | 100 | 8/29/2024 |
| Try #2 | 100 | 8/29/2024 |
| Try #1 | 0 | 8/29/2024 |