Skip to content
RED SAG Skills
easy5 pts · first answer countsarraysprefix-sumsmatrix

Fast rectangle sums on a grid

A heat map grid gets thousands of queries asking for the sum inside a rectangle. What makes each query O(1)?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions