Question d’entretien chez Apple

Find bugs in a naive implementation of a priority queue.