8000 fix a wrong variable · lihappy/leetcode@00bdccb · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00bdccb

Browse files
author
lamian
committed
fix a wrong variable
1 parent ea6d43b commit 00bdccb

File tr 8000 ee

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/chapDynamicProgramming.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ \subsubsection{代码}
11741174
vector<string> wordBreak(string s, unordered_set<string> &dict) {
11751175
// 长度为n的字符串有n+1个隔板
11761176
vector<bool> f(s.length() + 1, false);
1177-
// path[i][j]为true,表示s[j, i)是一个合法单词,可以从j处切开
1177+
// prev[i][j]为true,表示s[j, i)是一个合法单词,可以从j处切开
11781178
// 第一行未用
11791179
vector<vector<bool> > prev(s.length() + 1, vector<bool>(s.length()));
11801180
f[0] = true;

0 commit comments

Comments
 (0)
0