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:
- I did a thorough design involving Room, RoomService, Schedule, ScheduleService, RoomSelectionStrategy.
- Used a
vector<pair<Datetime,Datetime>>to store the booked time slot in Room object. isAvailableiterates over all booked time slots and return false if there is clash with the requirement- Used RoomSelectionStrategy as a separate class to take care of separation of concerns.
Things I messed up:
- Went over time
- Forgot to inject RoomService as a dependency in ScheduleService
- 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)


