Pergunta de entrevista da empresa MathWorks

Dynamic programming and array manipulation questions.