Segment Tree for Range Queries

hard
Unit 23 · Trees & Graphs0/0 to milestone

Build a structure over an array that supports point updates and range queries in O(log n) each.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Segment Tree for Range Queries · TechGradify