Uber SDE2 DSA Interview Round

uber logo
uber
SDE II
May 31, 20252 reads

Summary

I was asked to design a reservation system in a DSA interview round.

Full Experience

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.

Interview Questions (1)

Q1
Design a Room Reservation System
Data Structures & Algorithms

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.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!