Pergunta de entrevista da empresa Apple

Find bugs in a naive implementation of a priority queue.