We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf02277 commit d24f3d1Copy full SHA for d24f3d1
library/data_structures_[l,r]/seg_tree_uncommon/walk.hpp
@@ -1,5 +1,5 @@
1
int walk(int l, int r, const auto& f) {
2
- if (T x = s[l + n]; f(x))
+ if (T x = s[l +n]; f(x))
3
for (l++; l <= r;) {
4
int u = l + n, v = __lg(min(u & -u, r - l + 1));
5
if (T y = op(x, s[u >> v]); f(y)) l += 1 << v, x = y;
0 commit comments