This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = (1:5)';
y_correct = [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 2 1];
assert(isequal(shifted(x),y_correct))
|
5831 Solvers
17120 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
511 Solvers
573 Solvers
321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!