更新表达方式
This commit is contained in:
@@ -111,14 +111,14 @@ bool isResult(vector<vector<int>>& grid, int x, int y) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 第二边界右边
|
||||
// 第二边界下边
|
||||
for (int j = 0; j < m; j++) {
|
||||
if (visited[n - 1][j]) {
|
||||
isSecond = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 第二边界下边
|
||||
// 第二边界右边
|
||||
for (int i = 0; i < n; i++) {
|
||||
if (visited[i][m - 1]) {
|
||||
isSecond = true;
|
||||
|
||||
Reference in New Issue
Block a user