Skip to content

Commit

Permalink
Update 03. Maximum sum Rectangle in Matrix.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirPaulb committed Jan 17, 2023
1 parent 2f34c98 commit 42e7982
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# https://practice.geeksforgeeks.org/problems/maximum-sum-rectangle2948/1
# https://youtu.be/yCQN096CwWM

class Solution:
def maximumSumRectangle(self,R,C,M):
Expand All @@ -13,7 +14,6 @@ def kadanes(arr):
return ms

res = kadanes(M[0])
arr = [0] * C
for i in range(R):
arr = [0] * C
for r in range(i, R):
Expand Down

0 comments on commit 42e7982

Please sign in to comment.