Cody

Solution 878986

Submitted on 20 Apr 2016 by William
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
n=10 x = randperm(n); y_correct = [2 4 6 8 10]; assert(isequal(rmv_srt(n),y_correct))

n = 10 x = 1 9 8 10 5 6 3 2 7 4

2   Pass
n=25 x = randperm(n); y_correct = [2 4 6 8 10 12 14 16 18 20 22 24]; assert(isequal(rmv_srt(n),y_correct))

n = 25 x = Columns 1 through 16 1 19 13 11 18 4 22 5 14 10 24 6 8 21 12 23 Columns 17 through 25 25 16 17 2 9 7 15 20 3