Needs more test cases, having arrays with more than 4 elements.
This is definitely cheating.
I couldn't resist... :o) Sorry!!!
272 Solvers
348 Solvers
669 Solvers
401 Solvers
110 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!