Pergunta de entrevista da empresa BitTorrent

Standard algorithm test questions; nothing that hard