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));
B =
8 1
2 2
3 3
6 4
4 5
0 6
7 7
5 8
9 9
1 10
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));
B =
8 1
2 2
2 2
3 3
4 5
0 6
7 7
5 8
9 9
9 9
1 10
1 10
1 10
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));
B =
2 2
3 3
4 5
0 6
0 6
0 6
7 7
5 8
5 8
9 9
1 10
b =
2 3 4 0 0 0 7 5 5 9 1
|
The Goldbach Conjecture, Part 2
1284 Solvers
501 Solvers
Are all the three given point in the same line?
270 Solvers
216 Solvers
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!