Pergunta de entrevista da empresa Google

graph problem, and a problem with binary search solution.