Maximum Submatrix
LintCode 944
Given an n x n
matrix of positive
and negative
integers, find the submatrix with the largest possible sum.
Example
这题和上一题 submatrix sum 的套路一摸一样。这里就写一个 2D kadane 的做法,因为程序较短
具体思路见上一题
Last updated
Was this helpful?
LintCode 944
Given an n x n
matrix of positive
and negative
integers, find the submatrix with the largest possible sum.
Example
这题和上一题 submatrix sum 的套路一摸一样。这里就写一个 2D kadane 的做法,因为程序较短
具体思路见上一题
Last updated
Was this helpful?