how to display the submatrix yielding maximum sum from this row wise and column wise sorted matrix?
Displaying the maximum sum submatrix
Along with checking the maximum sum, you can store the coordinate positions
the coordinates of the cell which has the maximum value in the suffix sum subarray say (i,j) and then iterate from this cell till the last cell of the original matrix to display the maximum sum submatrix right?