Skip to content

Commit 1d20694

Browse files
committed
更新417中Carl题解C++代码里的注释错误
1 parent 70643a8 commit 1d20694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

problems/0417.太平洋大西洋水流问题.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ public:
177177
178178
// 记录从大西洋出发,可以遍历的节点
179179
vector<vector<bool>> atlantic = vector<vector<bool>>(n, vector<bool>(m, false));
180-
181-
// 从最上最下行的节点出发,向高处遍历
180+
181+
// 从最左最右列的节点出发,向高处遍历
182182
for (int i = 0; i < n; i++) {
183183
dfs (heights, pacific, i, 0); // 遍历最左列,接触太平洋
184184
dfs (heights, atlantic, i, m - 1); // 遍历最右列,接触大西
185185
}
186186
187-
// 从最左最右列的节点出发,向高处遍历
187+
// 从最上最下行的节点出发,向高处遍历
188188
for (int j = 0; j < m; j++) {
189189
dfs (heights, pacific, 0, j); // 遍历最上行,接触太平洋
190190
dfs (heights, atlantic, n - 1, j); // 遍历最下行,接触大西洋

0 commit comments

Comments
 (0)