Cheap_try's blog

By Cheap_try, history, 17 months ago, In English

Can you please give me a list of some simple 1-D dynamic programming problems which you did or practiced when you start learning dynamic programming.

thank you in advanced.

  • Vote: I like it
  • +1
  • Vote: I do not like it

| Write comment?
»
17 months ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

Starting problems of cses DP Section, Atcoder DP first few and random DP tagged codeforces problem (may or may not be very educational), here is one. You can find some gym contest made by errichto or other coders too on codeforces. You can find one of them in this blog.

Also a suggestion, it would be better to understand why you need 2D or more dimension "dp array" in first place. You will build intuition as you practice but having less DP states doesn't make a problem any easier.

»
17 months ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

usaco guide

Here are the best resources to learn anything

You can find a DP in the gold Section