You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First we find maximum in all rows and columns. Then one by one we traverse and check whether the value is equal to it's maximum value in row/column or not. If not then assign the maximum value of that row else the maximum value of the column if it goes far the maximum value of it's row.