Array
2536. Increment Submatrices by One
Given an n×n matrix of zeros and a list of queries, each [r1, c1, r2, c2] specifying a submatrix. For each query, increment all cells of that submatrix by 1. Return the final matrix. A batch of 2-D…
Loading…