Cody

Solution 2093090

Submitted on 14 Jan 2020 by zaid aldailami
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [0,1,2,3,4]; y_correct = [4,3,2,1,0]; assert(isequal(desSort(x),y_correct))

b = 0 x = 1 1 2 3 4 x = 1 0 2 3 4 b = 0 x = 1 2 2 3 4 x = 1 2 0 3 4 b = 0 x = 1 2 3 3 4 x = 1 2 3 0 4 b = 0 x = 1 2 3 4 4 x = 1 2 3 4 0 b = 1 x = 2 2 3 4 0 x = 2 1 3 4 0 b = 1 x = 2 3 3 4 0 x = 2 3 1 4 0 b = 1 x = 2 3 4 4 0 x = 2 3 4 1 0 b = 2 x = 3 3 4 1 0 x = 3 2 4 1 0 b = 2 x = 3 4 4 1 0 x = 3 4 2 1 0 b = 3 x = 4 4 2 1 0 x = 4 3 2 1 0 y = 4 3 2 1 0