Data Structured67_q1c_hotel_room
Hotel Room
0fb2dd15-42cc-44a7-8f0b-9ddd0afbe38e.cppC++
1// Loading code...Selected Submission
100 / 100
0.079s
5884 KB
Ordered MapImplementation
Time Comp.
O(N log N)
Space Comp.
O(N)
Readability
6/10
"The code utilizes a `set` to store `Floor` objects, which are custom structs representing floors in a hotel. The `set` maintains floors in a sorted order based on availability and floor number, making it a key data structure for efficient room assignment."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #10 | 100 | 5/6/2025 |
| Try #9 | 100 | 5/6/2025 |
| Try #8 | 100 | 5/6/2025 |
| Try #7 | 100 | 5/6/2025 |
| Try #6 | 100 | 5/6/2025 |
| Try #5 | 100 | 5/6/2025 |
| Try #4 | 100 | 5/6/2025 |
| Try #3 | 100 | 5/6/2025 |
| Try #2 | 100 | 5/6/2025 |
| Try #1 | 75 | 5/6/2025 |