Cody

Problem 44888. Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.

Created by Yoav Shallev in Community
 ---------------
A=
[ 2 6 -3
7 12 0
-12 5 1]
---------------
B=
    [12     7     1
     6     2     0
     5    -3   -12];

Solution Stats

26.16% Correct | 73.84% Incorrect
Last solution submitted on Jul 15, 2019