I would have never done this way. Great job!
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));
|
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));
|
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));
|
28007 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
836 Solvers
Back to basics 9 - Indexed References
392 Solvers
Check if number exists in vector
4471 Solvers
208 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!