Udaan Question

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-08-01Added By Anonymous
Source: Link
Company: Udaan
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown

Original Experience:
First round was machine coding.
The question was to design a calender to for multiple users.
We have to code logic for 4 specific commands:-
1. Add User - unique username will be used as identifier if same username is tried to insert multiple time fail the request.
2. Create Event - Each event comprised of day, time and list of users. If day time were not suitable or users had clashing event then request was to be failed.
3. List events of user in a day and user - given a day list all events of that user in that day. Also list names of other users attending that event.
4. Suggest Slot- Given a day, time range, duration and list of users sugget the earliest time when it is possible to accomodate all the users.
Comments