Cody

Solution 2072973

Submitted on 28 Dec 2019 by 2quack
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))

s = 1 5 s2 = 5 y = 0 0 0 0 0 q = 4 f = 5 x = 0 1 2 3 y = 4 0 0 0 0 q = 3 f = 4 x = 0 1 2 y = 4 3 0 0 0 q = 2 f = 3 x = 0 1 y = 4 3 2 0 0 q = 1 f = 2 x = 0 y = 4 3 2 1 0 q = 0 f = 1 x = 1×0 empty double row vector y = 4 3 2 1 0

Suggested Problems

More from this Author1