Back to Questions

Implement a Segment Tree (Range Query)

48.8K viewsAsked at Oracle
Hard

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question