This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Paul Dostert
on 10 Mar 2019
Include a test case where first and last are same, but ones in middle aren't (say [1 2 4 3 5 2 1])
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!