from AtCoder Library Practice Contest ACLPC_J J - Segment Tree
-
- segment tree is a tree that can speed up this kind of operation.
- As for query 3, we’ll do a binary search.
This page is auto-translated from [/nishio/ACLPC J](https://scrapbox.io/nishio/ACLPC J) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.