We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780363b commit 9717342Copy full SHA for 9717342
1 file changed
library/data_structures/uncommon/linear_rmq.hpp
@@ -25,8 +25,7 @@ template<class T, class F> struct linear_rmq {
25
(i == n || !cmp(a[st.back()], a[i]))) {
26
head[prev] = st.back();
27
auto k = end(st)[-2] + 1u, b = bit_floor(k ^ i);
28
- in[st.back()] = prev = i & -b;
29
- asc[k] |= b;
+ in[st.back()] = prev = i & -b, asc[k] |= b;
30
st.pop_back();
31
}
32
st.push_back(head[prev] = i);
0 commit comments