DP-2, Problemset: Questions
DP-2, Problemset: Questions
DP-2, Problemset: Questions
QUESTIONS
I also strongly advise you guys to read up on DP from the topcoder tutorial, its a bit
lengthy but pretty helpful https://www.topcoder.com/community/data-science/data-science-tutorials/dynamic-pro
gramming-from-novice-to-advanced/
1. https://leetcode.com/tag/dynamic-programming/
- A set of easy DP questions,
wont take much time and will help clearing the basics. Solve the Easy and
Medium questions, in interviews questions like this are asked.
2. TRIKA -
http://www.spoj.com/problems/TRIKA/
I gave this problem in the last problemset too, after explaining the path based
problems I guess you shouldnt have much of a problem doing this question.
3. AMR11A -
http://www.spoj.com/problems/AMR11A/
Harder path problem.
4. MARTIAN -
http://www.spoj.com/problems/MARTIAN/
Pretty difficult. Another 2D DP question.
5. ACPC10D -
http://www.spoj.com/problems/ACPC10D/
Easy path problem.
6. TRT -
http://www.spoj.com/problems/TRT/
7. TWENDS -
http://www.spoj.com/problems/TWENDS/
Decent question that requires strong basics.
8. MAIN74 -
http://www.spoj.com/problems/MAIN72/