Medium Accuracy: 51.09% Submissions: 9829 Points: 4
Given a 2D array, find the maximum sum subarray in it. For example, in the following 2D array, the maximum sum subarray is highlighted with blue rectangle and sum of this subarray is 29.
First line of every test case consists of T test case. First line of every test case consists of 2 integers R and C , denoting number of rows and columns. Second line consists of R*C spaced integers denoting number of elements in array.
Single line output, print the Max sum forming a rectangle in a 2-D matrix