Skip to content

Commit 8102111

Browse files
committed
finally debugged it
1 parent 683e7f1 commit 8102111

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/data_structures_[l,r]/seg_tree_uncommon/min_left.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ int min_left(int l, int r, const auto& f) {
44
int u = r + 1 + n, v = __lg(min(u & -u, r - l + 1));
55
if (T y = op(s[(u - 1) >> v], x); f(y))
66
r -= 1 << v, x = y;
7-
else l = r - (1 << v) + 1;
7+
else l = r - (1 << v) + 2;
88
}
99
return r;
1010
}

0 commit comments

Comments
 (0)