summaryrefslogtreecommitdiff
path: root/datastructures
diff options
context:
space:
mode:
Diffstat (limited to 'datastructures')
-rw-r--r--datastructures/lazyPropagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/datastructures/lazyPropagation.cpp b/datastructures/lazyPropagation.cpp
index ed5438f..eea8818 100644
--- a/datastructures/lazyPropagation.cpp
+++ b/datastructures/lazyPropagation.cpp
@@ -69,7 +69,7 @@ struct SegTree {
if (l&1) a.emplace_back(l++, k);
if (r&1) st.emplace_back(--r, k);
}
- a.insert(a.begin(), st.rbegin(), st.rend());
+ a.insert(a.end(), st.rbegin(), st.rend());
for (auto [i, k] : a) {
if (tree[i] >= x) return find(i, x, k); // Modify this
}