This solution is outdated. To rescore this solution, sign in.
-
1 Comment
tomio wakasugi
on 5 Apr 2012
My MATLAB worked for Test#3:
>> swap_ends(A)
ans =
3 2 0 5 1
Strange??
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!