Maximum increase in value of Matrix to keep maximum rows and columns unchanged
Given a matrix mat[][] of dimensionM*N, the task is to find the total maximum possible value must be increased to each cell(say mat[i][j]) such that maximum element of row i and column j remains unchanged. Examples: Input: N = 3, M = 3, mat[][] = { {4, 1, 3}, {3, 1, 1}, {2, 2, 0} } Output: 6 Explanation: The given matrix is: 4 1 3 3 1 1 2 2 0 Row-w