We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4132b commit 80eacd5Copy full SHA for 80eacd5
library/trees/shallowest_decomp_tree.hpp
@@ -22,7 +22,7 @@ void shallowest(auto& adj, auto f) {
22
};
23
dfs(dfs, 0, 0);
24
auto cpy(adj);
25
- adj.assign(n, {});
+ adj.assign(sz(adj), {});
26
for (vi vec : order)
27
for (int v : vec) {
28
f(v);
0 commit comments