Novo curso: Como conseguir vagas remotas em empresas que pagam $120k+/ano
NaGringa
CodingSenior

Leetcode 759. Employee Free Time

Given each employee's list of working intervals, compute the finite time intervals when every employee is free by merging/combining overlapping busy intervals across multiple sorted lists and reporting the gaps; this typically uses interval-merge or sweep-line (heap) techniques to handle overlaps across employees.

Empresas em que apareceu
AmazonAmazonGoogleGoogle
Contextos reais

Onde essa pergunta já apareceu

Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.

Amazonstaff_plusjan. de 2026

Its a variant of employee free time, where instead of finding the free time given employee oncall timings, we have to find intervals where emloyees are oncall. for example, lets say user1 - [1,10], user2 - [5,7], user3-[6,11] we have to give out like 1-5 = user1 oncall 5-6 = user1, user2 oncall 6-7 = user1, user2, user3 oncall 7-10 = user1, user3 oncall 10-11 = user3 oncall we can use line sweep method by sorting the all start and end times for this by maintaining a set of current oncall and adding and removing the user from set when start or end time comes

Googlejuniordez. de 2024

Given a struct Block representing busy time intervals for people and a total duration, find the time intervals during which all persons are free

Anexos públicos

Materiais associados

Nenhum anexo público associado a esta pergunta.

Próximo passo

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.