Skip to content

Commit e56951d

Browse files
authored
Update find-eventual-safe-states.cpp
1 parent ade9b14 commit e56951d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/find-eventual-safe-states.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Solution {
1313
return lookup[node] == BLACK;
1414
}
1515
lookup[node] = GRAY;
16-
if (any_of(cbegin(graph[node]), cend(graph[node]), [&](const auto& child) { return ! dfs(child); })) {
16+
if (any_of(cbegin(graph[node]), cend(graph[node]), [&](const auto& child) { return !dfs(child); })) {
1717
return false;
1818
}
1919
lookup[node] = BLACK;

0 commit comments

Comments
 (0)