提交 0e67bd22 编写于 作者: R Ryan Ruoshui Yan 提交者: labuladong

Update 子序列问题模板.md

It is "int[][] dp = new int[n][n];", not "int[][] dp = new **dp**[n][n];"
上级 86a335be
......@@ -37,7 +37,7 @@ for (int i = 1; i < n; i++) {
```java
int n = arr.length;
int[][] dp = new dp[n][n];
int[][] dp = new int[n][n];
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
......@@ -149,4 +149,4 @@ int longestPalindromeSubseq(string s) {
[下一篇:动态规划之博弈问题](../动态规划系列/动态规划之博弈问题.md)
[目录](../README.md#目录)
\ No newline at end of file
[目录](../README.md#目录)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册