Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
flagSame = isequal(makeRandomOrdering(n), makeRandomOrdering(n));
flagAllUsed = isequal([1:n],sort(makeRandomOrdering(n)));
assert(~flagSame & flagAllUsed)
ans =
9 7 5 3 2 8 10 6 4 1
ans =
2 9 1 5 7 6 3 10 4 8
ans =
10 5 6 3 4 1 9 2 7 8
|
1311 Solvers
Make one big string out of two smaller strings
1070 Solvers
Find the sum of the elements in the "second" diagonal
879 Solvers
Sum of first n terms of a harmonic progression
188 Solvers
262 Solvers