Mobile menu
Home
All pages
Categories
Help
This page
Edit
See history
See raw source
View on GitHub
Merge sort tree
Problems
K-Query Online
1
See also
Segment tree
External links
Lecture on Merge Sort Tree and Persistence in Data Structures By Sergey Kulik
Note that the test cases are a little bit shady, sometimes giving queries
i
,
j
i,j
i
,
j
that don't satisfy
1
≤
i
≤
j
≤
n
1\leq i\leq j\leq n
1
≤
i
≤
j
≤
n
.
Blue.Mary
describes the correct behaviour in the comments.
↩