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

AttemptPoints Time
Try #101005/6/2025
Try #91005/6/2025
Try #81005/6/2025
Try #71005/6/2025
Try #61005/6/2025
Try #51005/6/2025
Try #41005/6/2025
Try #31005/6/2025
Try #21005/6/2025
Try #1755/6/2025