We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f55a703 commit 65565adCopy full SHA for 65565ad
Dynamic_Programming/1595.Minimum-Cost-to-Connect-Two-Groups-of-Points/Readme.md
@@ -19,7 +19,6 @@ for (int i=0; i<m; i++)
19
{
20
for (int subset : state)
21
dp[i][state] = dp[i-1][state-subset] + cost[i][subset]
22
- dp[i][state[ = dp[i-1][state] + minCost[i]
23
}
24
```
25
注意对于state的遍历嵌套subset的遍历,时间复杂度并不是``` 2^N * 2^N```,而是```3^N```。你可以想象,对于每一个bit,在外、里两层的状态只可能是```10,11,00```。
0 commit comments