[Query] Uber | L4 | Bangalore | Jul 2022 [Ongoing]

Anonymous User
1075
Aug 07, 2022

Status: Two years experience at Fintech
Position: SDE1
Location: Bangalore

Hi folks,

I was asked to design a booking service for conference rooms.

Things I did:

  1. I did a thorough design involving Room, RoomService, Schedule, ScheduleService, RoomSelectionStrategy.
  2. Used a vector<pair<Datetime,Datetime>> to store the booked time slot in Room object.
  3. isAvailable iterates over all booked time slots and return false if there is clash with the requirement
  4. Used RoomSelectionStrategy as a separate class to take care of separation of concerns.

Things I messed up:

  1. Went over time
  2. Forgot to inject RoomService as a dependency in ScheduleService
  3. Forgot to update booked time slot vector in Room

There was one DSA round that I aced before this one.

I am anxious about the results, what do you folks think, will I move ahead or be rejected at this point?

Thanks

Comments (2)