Meeting Room Scheduler
Design a data structure to manage a list of meeting rooms, supporting methods to find and book the best available room for a given time slot. Optimize the room selection strategy to minimize fragmentation, maximizing the likelihood of accommodating longer meetings in the future.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early August, 2026
Code a system that can schedule meetings in a predefined set of conference rooms. It should have a method like scheduleMeeting(timeRange) which returns any available room at that time and reserves it or an error if no rooms are available.
Late April, 2026
Come with data structure to support moderate list of rooms and method that first search best available room and then book that room. Later optimize on best available to avoid fragmentation among rooms available similar to memory fragmentation i.e. increase chance of finding a room for long meetings for future calls. AI assisted round
Hello Interview Premium
Your account is free and you can post anonymously if you choose.