Youwang Deng

I'm a software developer, familiar with C#, Java, JavaScript, focus on full stack development.

Leetcode Dynamic Programming Note

17 Jul 2019 » Leetcode-DynamicProgramming, Algorithm

Dynamic Programming

  • overlap subproblems
  • transition formula
  • bottom-up or top-down for loop
  • use a global variable to update global min or max
  • (i,j) max or min DP, usually involved with traverse i < k < j
  • DP return path, use 2D array store boolean and use dfs to build path