Uber SDE2 DSA Interview Round

Anonymous User
2184
May 31, 2025

Question : Design a Reservation System where you are given a list of rooms [roomA, roomB, ...] and starTime and endTime of a meeting. Write a method scheduleMeeting(startTime, endTime) whick books a room if any room is available for that particular time period and returns the roomId , else errors out.

You need to provide the optimised approach for booking the room.

Comments (6)