GoAlgo

LeetCode 2536:二维差分

sanyinchen

https://leetcode.cn/problems/increment submatrices by one/description/ 一、题目解析 1.1 题意 给定 n,初始有一个 n×n 的全零矩阵 mat。queries 中每个元素形如 [row1, col1, row2, col2],表示把以 (ro…

正在进入完整页面…