We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea6d43b commit 00bdccbCopy full SHA for 00bdccb
C++/chapDynamicProgramming.tex
@@ -1174,7 +1174,7 @@ \subsubsection{代码}
1174
vector<string> wordBreak(string s, unordered_set<string> &dict) {
1175
// 长度为n的字符串有n+1个隔板
1176
vector<bool> f(s.length() + 1, false);
1177
- // path[i][j]为true,表示s[j, i)是一个合法单词,可以从j处切开
+ // prev[i][j]为true,表示s[j, i)是一个合法单词,可以从j处切开
1178
// 第一行未用
1179
vector<vector<bool> > prev(s.length() + 1, vector<bool>(s.length()));
1180
f[0] = true;
0 commit comments