Skip to content

Commit 7718bf6

Browse files
authored
Refactor query function in seg_tree.hpp
Fix formatting and improve query function readability.
1 parent d94896b commit 7718bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/data_structures_[l,r]/seg_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ template<class T, class F> struct tree {
2424
for (s[i += n] = val; i /= 2;)
2525
s[i] = op(s[2 * i], s[2 * i + 1]);
2626
}
27-
T query(int l, int r) { // [l, r]
27+
T query(int l, int r) {
2828
T res = s[nxt(l += n, r += n)];
2929
while (l <= r) res = op(res, s[nxt(l, r)]);
3030
return res;

0 commit comments

Comments
 (0)