Pergunta de entrevista da empresa Barclays

Algorithmic problem (dynamic programming) with questions about time and space complexity.