We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents527cce5 +4d14725 commit197319eCopy full SHA for 197319e
src/data_structures/segment_tree.md
@@ -659,7 +659,7 @@ But notice, that this uses three times more memory than a normal Merge Sort Tree
659
It is straightforward to apply this technique to a problem, that doesn't require any modification queries.
660
The two positions are just integers and can easily be computed by counting when merging the two sorted sequences.
661
662
-Itit still possible to also allow modification queries, but that complicates the entire code.
+Itis still possible to also allow modification queries, but that complicates the entire code.
663
Instead of integers, you need to store the sorted array as`multiset`, and instead of indices you need to store iterators.
664
And you need to work very carefully, so that you increment or decrement the correct iterators during a modification query.
665