Cody

Solution 1605351

Submitted on 10 Aug 2018 by Srishti Saha
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 = 10 8 4 1 6 2 3 5 7 9 ans = 2 4 6 8 10

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 = 15 3 20 18 5 23 13 19 4 21 6 11 25 16 10 22 1 14 12 8 9 24 17 7 2 ans = 2 4 6 8 10 12 14 16 18 20 22 24

Suggested Problems

More from this Author8