What is the goal of Segment Tree?

Practice this question from Segment Tree - Range Sum Query Pattern Practice Quiz, with options and an explanation.

Question

What is the goal of Segment Tree?

Option A — Correct answer

Support range sum queries and point updates.

Option B

Only sort a fixed array once

Option C

Only print all recursion paths

Option D

Only detect whether a number is prime

Explanation

Support range sum queries and point updates.

Segment Tree - Range Sum Query Pattern Practice Quiz

All questions · Next question

Open on QuizMaker