Skip to content
Rain Hu's Workspace
Go back

[Algo] 2-5. 動態規劃 Dynamic Programming

Rain Hu

一、動態規劃的思考藝術


二、動態規劃框架

1. 定序列型

houserobber


2. 不定序列型(LIS)

russian doll


3. 雙序列型(LCS)

lcs


4. 區間型

interval


5. 回文型(LPS)

LPS


6. 背包型

backpack

三、狀態壓縮

  1. 方法1
  1. 方法2


Share this post on:

Previous
[LeetCode] 198. House Robber
Next
[LeetCode] 947. Most Stones Removed with Same Row or Column