Pergunta de entrevista da empresa Google

Simple dynamic programming and array based questions.