Pergunta de entrevista da empresa Google

Dynamic programming an directed graph