Reschedule k meetings to find maximum break time. Given n presenters scheduled from time 0 to t, with start and finish times for each meeting, rearrange up to k meetings to maximize the longest break period. Cannot change the order of events.
Leetcode 3439. Reschedule Meetings for Maximum Free Time I
Given non-overlapping meetings inside [0, eventTime], you may shift up to k meetings (keeping each meeting's duration and the relative order, and staying within the event) to maximize the length of the longest continuous free interval; return that maximum gap. n can be up to 1e5, so an O(n)–O(n log n) strategy (sliding window / DP on intervals) is needed.
Onde essa pergunta já apareceu
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Materiais associados
Nenhum anexo público associado a esta pergunta.
Depois de treinar essa pergunta, vale abrir outras do mesmo tipo e da mesma senioridade para comparar padrões de resposta.
Isso ajuda a sair da memorização de uma resposta só e entrar em repertório real de entrevista.
Continue a preparação com o banco completo
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.