Pergunta de entrevista da empresa Deutsche Bank

LC medium dynamic programming question