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

Правка en1, от 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 :)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Adiix 2022-07-30 12:27:37 482 Initial revision (published)