Skip to main content

One doc tagged with "2D Matrix"

View all tags

Range Sum Query 2D - Mutable

Given a 2D matrix, handle multiple queries of the following types - updating the value of a cell and calculating the sum of elements inside a rectangle defined by its upper left and lower right corners.