Sem observação adicional neste relato público.
Optimize Meeting Point for Friends in a Graph
Given a graph with n friends at different locations and m possible meeting points (restaurants/cafes), find the optimal meeting location. The goal is to minimize either the total travel time or the maximum time for any friend to reach the meeting point. Each edge in the graph represents a path with unit distance taking unit time to travel.
Onde essa pergunta já apareceu
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Find the restaurant with shortest total travel distance for K friends. Given K friends' locations, M restaurant locations, and E edges, determine the restaurant where the total travel distance from all friends is shortest. Return -1 if no such restaurant exists.
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.