Uber SDE2 DSA Interview Round

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-05-31Added By Anonymous
Source: Link

Company: Uber

Role: SDE2

Interview Stage: Onsite

Original Post Content:

Question : Design a Reservation System where you are given a list of rooms [roomA, roomB, ...] and startTime and endTime of a meeting. Write a method scheduleMeeting(startTime, endTime) which 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