Search
⌘K

Meeting Room Scheduler

Design a Meeting Room Scheduler data structure that supports two operations: checkAvailability(startTime, endTime) which returns a list of available meeting rooms for the given time slot, and reserve(startTime, endTime) which books an available room. Implement an efficient lookup strategy using OOP principles with classes such as TimeSlot, Room, and MeetingScheduler, and include test cases to validate your solution.

Asked at:

Uber


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late April, 2026

Uber

Senior

Design a data structure to reserve a room and check avalibilty checkAvalibility(StartTime, EndTime )-> return List of available meeting rooms reserve(startTime, endTime) -> should just reserve the room and return nothing. The driver code is intelligent enough to call reserve only when there are rooms available It should be a LLD design where you need to have an efficient strategy to lookup available meeting room and return the list. Also write test cases, The interviewer wants to see how you interact with AI to solve this problem. The idea is you write the boiler plate code with all different objects like class TimeSlot: class Rooms: class MeetingScheduler:

Your account is free and you can post anonymously if you choose.