Range Query

Square Root Decomposition

Apparently one of the most common techniques used by competitive programmers for query optimization. ā†’ But I thought sparse table was much better, since is faster than

Resources