Skip to content
RED SAGSkills
easy5 pts · first answer countsarraysprefix-sumstime-complexity

Cost of prefix sum queries

You build a prefix sum array for n values and then answer q range-sum queries. What is the total cost?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions