Deepak Verma
Deepak Verma @deepak_ver63234 ·
Array Description uses DP with state = index + previous value. dp[i][x] = ways to fill from i if previous value is x next value must differ by at most 1 try valid values and memoize Nice state DP problem. #CSES #DP #CompetitiveProgramming
63