Sem observação adicional neste relato público.
Leetcode 1723. Find Minimum Time to Finish All Jobs
Partition the given job times into k worker workloads so that the maximum sum assigned to any worker is as small as possible — a balanced k-way partitioning problem. With n ≤ 12 this is typically solved by exhaustive search/bitmask DP with strong pruning or by binary-searching the answer and checking feasibility via DFS.
Onde essa pergunta já apareceu
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Given an array of [id, testTime] where testTime = time take to run the test `id`, and an integer n that represents max number of times allowed on all machines, return all Ids per machine where a minimum number of machines are used to finish all the tests. ex) input: [[1, 10], [2, 30], [3, 60], [4, 15]], n = 60 output: [[3], [2, 1, 4]]
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.