You are given an integer eventTime representing the total duration of an event on a timeline from eventTime. You are also given two integer arrays startTime and endTime of length n, representing n meetings where the startTime[i], endTime[i]
All meetings are initially non overlapping and ordered chronologically.
You can reschedule at most
The meeting’s duration, endTime[i] startTime[i], remains unchanged.
The rescheduled meeting lies completely within the event interval eventTime
The rescheduled meeting does not overlap with any of the remaining
Return the maximum continuous free time possible during the event after rescheduling at most
Note: Continuous free time is any interval of time within
eventTimewhere no meeting is taking place.
Constraints:
eventTime
n startTime.length endTime.length
n
startTime[i] endTime[i] eventTime
endTime[i] startTime[i + 1] for all i in the range
You are given an integer eventTime representing the total duration of an event on a timeline from eventTime. You are also given two integer arrays startTime and endTime of length n, representing n meetings where the startTime[i], endTime[i]
All meetings are initially non overlapping and ordered chronologically.
You can reschedule at most
The meeting’s duration, endTime[i] startTime[i], remains unchanged.
The rescheduled meeting lies completely within the event interval eventTime
The rescheduled meeting does not overlap with any of the remaining
Return the maximum continuous free time possible during the event after rescheduling at most
Note: Continuous free time is any interval of time within
eventTimewhere no meeting is taking place.
Constraints:
eventTime
n startTime.length endTime.length
n
startTime[i] endTime[i] eventTime
endTime[i] startTime[i + 1] for all i in the range