Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = [1 2 3 4 5 6 7 8 9 0];
b = [8 2 3 6 4 0 7 5 9 1];
out = finnishOrdering(a);
assert(isequal(out, b));
i =
8
2
3
6
4
10
7
5
9
1
b =
8 2 3 6 4 0 7 5 9 1
|
2 | Pass |
a = [1 1 1 2 0 4 5 3 7 2 9 8 9];
b = [8 2 2 3 4 0 7 5 9 9 1 1 1];
out = finnishOrdering(a);
assert(isequal(out, b));
i =
12
4
10
8
6
5
9
7
11
13
1
2
3
b =
8 2 2 3 4 0 7 5 9 9 1 1 1
|
3 | Pass |
a = [0 0 0 1 5 4 3 2 7 5 9];
b = [2 3 4 0 0 0 7 5 5 9 1];
out = finnishOrdering(a);
assert(isequal(out, b));
i =
8
7
6
1
2
3
9
5
10
11
4
b =
2 3 4 0 0 0 7 5 5 9 1
|
Get the area codes from a list of phone numbers
532 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Set the array elements whose value is 13 to 0
935 Solvers
284 Solvers
227 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!