You are given an event that runs from time eventTime. There are n non overlapping meetings scheduled during the event, where the ith meeting occupies the half open interval [startTime[i], endTime[i]).
You may reschedule at most k meetings. Rescheduling a meeting means choosing a new half open interval of the same duration that lies entirely within eventTime
Return the maximum possible length of a continuous time interval during the event that contains no meetings.
Note: Meetings are given in non overlapping order, meaning each meeting ends no later than the next meeting starts.
Constraints:
eventTime
n startTime.length endTime.length
n
k n
startTime[i] endTime[i] eventTime
endTime[i] startTime[i + 1] where i lies in the range n
You are given an event that runs from time eventTime. There are n non overlapping meetings scheduled during the event, where the ith meeting occupies the half open interval [startTime[i], endTime[i]).
You may reschedule at most k meetings. Rescheduling a meeting means choosing a new half open interval of the same duration that lies entirely within eventTime
Return the maximum possible length of a continuous time interval during the event that contains no meetings.
Note: Meetings are given in non overlapping order, meaning each meeting ends no later than the next meeting starts.
Constraints:
eventTime
n startTime.length endTime.length
n
k n
startTime[i] endTime[i] eventTime
endTime[i] startTime[i + 1] where i lies in the range n