Skip to content

Commit 14052a9

Browse files
committed
修改注释
1 parent 9d3f79d commit 14052a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submatrix_sum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def submatrixSum(self, matrix):
1818
[0, 8, 12, 20]
1919
3. i2 >= i1, s[i2][k] - s[i1][k]的差等于m[i1][0]到m[i2 - 1][k - 1]的子矩阵的和。(闭区间)
2020
以s[2][2] - s[1][2] = 16 - 6 = 10。m[1][0]到m[2][1]
21-
4. 继续不在3,如果s[i2][j] - s[i1][j]等于s[i2][k] - s[i1][k],
21+
4. 继续步骤3,如果s[i2][j] - s[i1][j]等于s[i2][k] - s[i1][k],
2222
那么说明m[i1][k]到m[i2 - 1][j - 1]的子矩阵和为0
2323
'''
2424
rows = len(matrix)

0 commit comments

Comments
 (0)