Skip to content

Commit 5e306b2

Browse files
committed
consistent var names
1 parent 46b31a7 commit 5e306b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
//! @time O(n + q log n)
2020
//! @space O(n)
2121
int nxt(int& l, int r) {
22-
int x = l, y = __lg(min(l & -l, r - l + 1));
23-
return l += 1 << y, x >> y;
22+
int u = l, v = __lg(min(l & -l, r - l + 1));
23+
return l += 1 << v, u >> v;
2424
}
2525
template<class T, class F> struct tree {
2626
int n;

0 commit comments

Comments
 (0)