Cody

Solution 1268031

Submitted on 14 Sep 2017 by Gabriel Delcros
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))

val_max = 4 ind = 5 x = 0 1 2 3 val_max = 3 ind = 4 x = 0 1 2 val_max = 2 ind = 3 x = 0 1 val_max = 1 ind = 2 x = 0 val_max = 0 ind = 1 x = 1×0 empty double row vector

More from this Author1