damon2598's blog

By damon2598, history, 8 years ago, In English

A very familiar niche of dp problemset is the subsequence problemset . But , there are a wide range of questions related to subarrays , that can be solved using dp. Please suggest me some resources for the problems related to subarrays , which can be solved using dp.

Tags dp
  • Vote: I like it
  • -6
  • Vote: I do not like it

»
8 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

The whole idea of dynamic programming is that you take a big problem(a big array) and you solve the same problem for a subproblem of it(a subarray) and after you use the solution of the subproblem to solve the big problem. So maybe the best you can do now, is to read some classic dp problems like (edit distance, coin-change problem, knapsack, LCS) and after solve many dp problems. I suggest you to use a2oj. Go to "Categories" and select "Dynamic programming". Start from difficulty 1 and if you find it easy jump to the next difficulty.

Good luck !