Skip to content
RED SAGSkills
medium10 pts · first answer countsarraysprefix-sumsmatrix

Rectangle sum from a 2D prefix table

P[i][j] is the sum of cells above and left of (i, j), exclusive, with an extra zero row and column. Which formula gives the sum of rows r1..r2 and columns c1..c2?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions