Search
⌘K

Leetcode 3440. Reschedule Meetings for Maximum Free Time II

Given non-overlapping meetings within [0, eventTime], you may move at most one meeting (keeping its duration and staying inside the event, with no overlaps) to maximize the length of the longest continuous free time interval; return that maximum. With n up to 1e5 and times sorted, the challenge is to pick which interval to relocate and where to insert it to best create or merge gaps (prefix/suffix/gap analysis rather than brute force).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.