Back to Question
Implement a Segment Tree (Range Query)
Question Explain
Explain the structure of a Segment Tree. Implement the `build` and `query` operations to efficiently compute the sum or minimum over a given range.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.