Pregunta de entrevista de Yandex

Standard algorithmic (heap, binary search) and Java (implement an iterator) questions