Dynamic Programming compilation

 DYNAMIC PROGRAMMING COMPILATION

Basic Recurrence Relation (Fibonacci type)

  1. Domino and Tromino tiling 
  2. 552. Student Attendance Record II 
  3. Dice Combinations (CSES) 
  4. 1269. Number of Ways to Stay in the Same Place After Some Steps 

a[i+1] constrained on a[i] (=> f[n][d], a[i] taking values 0 to d-1)

   Matrix chain multiplication type (try all possibilities -> memoisation)

Dp on strings -> LCS Type


Choice of selection from an array (Knapsack type)

Comments