Skip to content

Commit c47039e

Browse files
authored
Update Solution2.cpp
1 parent 8cbacca commit c47039e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solution/0200-0299/0200.Number of Islands/Solution2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Solution {
55
int n = grid[0].size();
66
int ans = 0;
77
int dirs[5] = {-1, 0, 1, 0, -1};
8-
function<void(int, int)> bfs = [&](int i, int j) {
8+
auto bfs = [&](int i, int j) -> void {
99
grid[i][j] = '0';
1010
queue<pair<int, int>> q;
1111
q.push({i, j});

0 commit comments

Comments
 (0)