Sem observação adicional neste relato público.
Leetcode 452. Minimum Number of Arrows to Burst Balloons
Given a list of intervals [x_start, x_end] (endpoints inclusive), find the minimum number of points on the x-axis (vertical arrows) such that each interval contains at least one point. This is the classic interval-stabbing/covering problem: choose the fewest x positions that hit all intervals.
Onde essa pergunta já apareceu
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
You're given a list of bookings, each as [booking_id, start_time, end_time]. Assign each booking to a table such that: - No two overlapping bookings share a table. - The total number of tables used is minimized. Return a mapping of table_id to the list of bookings assigned to that table. Each booking is represented as [booking_id, start_time, end_time].
Given intervals, find the minimum set of points S such that each interval has at least one point in S
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.