Skip to content

Commit 3d62707

Browse files
committed
more golf
1 parent 2bdc0a0 commit 3d62707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/graphs/functional_graph_processor.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ struct func_graph {
1616
vector<basic_string<int>> cycle, childs;
1717
func_graph(const vi& a): root_of(sz(a)), childs(sz(a)) {
1818
vi state(sz(a));
19-
rep(i, 0, sz(a)) if (state[i] == 0) {
19+
rep(i, 0, sz(a)) if (!state[i]) {
2020
int u = i;
21-
while (state[u] == 0) {
21+
while (!state[u]) {
2222
state[u] = 1;
2323
u = a[u];
2424
}

0 commit comments

Comments
 (0)