-
2 Comments
Paul Berglund
on 28 Dec 2014
Note that this will fail on a short sequence e.g. [10 20 21 40]
Alfonso Nieto-Castanon
on 5 Jan 2015
I believe changing mode to median should work in all non-ambiguous cases (length>3)
Suggested Problems
-
866 Solvers
-
Is the paranthesis sequence balanced ?
179 Solvers
-
15604 Solvers
-
353 Solvers
-
1554 Solvers
More from this Author9
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!