calculusphile
☰
CP
Projects
Blog
About
Segment Tree
Range queries & updates in O(log n).