Skip to content

Commit 3bca96f

Browse files
authored
Refactor idx function in linear_rmq.hpp
1 parent b8f41d4 commit 3bca96f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ template<class T, class F> struct linear_rmq {
3333
rep(i, 1, n) asc[i] =
3434
(asc[i] | asc[i - 1]) & -(in[i] & -in[i]);
3535
}
36-
int idx(int l, int r) { // [l, r]
36+
int idx(int l, int r) {
3737
if (unsigned j = in[l] ^ in[r]; j) {
3838
j = asc[l] & asc[r] & -bit_floor(j);
3939
if (unsigned k = asc[l] ^ j; k)

0 commit comments

Comments
 (0)