Metamidmar. de 2026
Meta asked it
Given N points on the plane and an integer k, return the k points with the smallest Euclidean distance to the origin (order doesn't matter). The core challenge is efficiently selecting the k smallest distances (e.g., via a max-heap or quickselect/partial sort) for up to N = 10^4 points.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Meta asked it
Sem observação adicional neste relato público.
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.