InterviewDB Question

Group Accommodation: Assign Guests to Rooms Minimizing Wasted Capacity

Question Details

Problem You have a list of hotel rooms with capacities and a list of guest groups with sizes. Assign each group to exactly one room such that the room capacity is >= group size and the total wasted capacity (sum of capacity - group_size across all as…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone