Medium Accuracy: 61.93%
Submissions: 8632 Points: 4
Given a 2D matrix M of dimensions RxC. Find the maximum sum subarray in it.
The matrix is as follows and the
blue rectangle denotes the maximum sum
Taking only the first cell is the
You don't need to read input or print anything. Your task is to complete the function maximumSumRectangle() which takes the number R, C, and the 2D matrix M as input parameters and returns the maximum sum subarray.
Expected Time Complexity:O(R*R*C) Expected Auxillary Space:O(R*C)