Pergunta de entrevista da empresa Google

Something about priority queue (data structure).