Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 4;
a = [ 1 2 3 4;
8 7 6 5;
9 10 11 12;
16 15 14 13];
assert(isequal(a,back_and_forth(n)));
|
2 | Pass |
n = 5;
a = [ 1 2 3 4 5;
10 9 8 7 6;
11 12 13 14 15;
20 19 18 17 16;
21 22 23 24 25];
assert(isequal(a,back_and_forth(n)));
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
29427 Solvers
Reverse the Words (not letters) of a String
243 Solvers
Back to basics 17 - white space
209 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
196 Solvers
729 Solvers