Print resultant matrix with the minimum values of KxK sub - matrix
for ( let i = 0 ; i < res . length ; i ++ ) { for ( let j = 0 ; j < res [ 0 ] . length ; j ++ ) { document . write ( res [ i ] [ j ] + " " ) ; } document . write ( " " ) ; } }