Sort a matrix


Given a m*n matrix that is sorted row-wise and column-wise. How would you print the entire matrix in a sorted order ?

Comments

Post a Comment

Popular posts from this blog