Skip to content
RED SAGSkills
easy5 pts · first answer countsgraphssegment-treetrees

What a segment tree is for

You must answer "sum of sales between day l and day r" and also update single days, many times. Which structure gives O(log n) for both?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions