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

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2022-08-07Added By Anonymous
Source: Link

Company: Uber

Role: Software Engineer II

Interview Stage: Onsite

Location: Bangalore

Year: 2022


Original Post Content:


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