[NEWBIE QUESTION] How do you decide whether you're going to use 1d or 2d Array in DP?

Revision en1, by Adiix, 2022-07-30 12:27:37

I've been trying DP questions ( not enough in codeforces, but in leetcode ) and whenever I try to solve this question, I'm stuck at whether I should do it with 1d Array or 2d Array.

now now now, I know many of you are going to say solve more problems ( I agree ). Through this question, I just want to know perspective of someone who has done dozens of questions..

Thanks and Peace out :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Adiix 2022-07-30 12:27:37 482 Initial revision (published)