Domanda di colloquio di Verily

Min heap type question, two pointer question