Feature #3: Check if Meeting is Possible
Implementing the "Check if Meeting is Possible" feature for our "Google Calendar" project.
We'll cover the following
Description
For this feature, we want to program a function that will let User A know if it is possible to schedule a meeting with User B or not. This decision will be made based on User B’s meeting schedule. If the new meeting’s time overlaps with an existing meeting in User B’s schedule, then the new meeting can not be scheduled.
Note: We will assume that User A is already free during the time of the new meeting, so no checks for this user are needed.
You will be given a list of start and end times of User B’s scheduled meetings, which are non-overlapping. Additionally, you will be given the start and end times for the proposed meeting, which we need to verify is schedulable.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.