Pergunta de entrevista da empresa YANDEX

Algorithms on graphs and binary trees