Insert the minimum element of the row
set . Add ( minr ) ; } for ( int j = 0 ; j < matrix . GetLength ( 0 ) ; j ++ ) { int maxc = int . MinValue ; for ( int i = 0 ; i < matrix . GetLength ( 1 ) ; i ++ ) {