This should not work in general. It returns false-positive for consecutive 1 5 7 :-)
Back to basics 3 - Temp Directory
328 Solvers
1143 Solvers
Arrange vector in ascending order
624 Solvers
Permute diagonal and antidiagonal
224 Solvers
Count consecutive 0's in between values of 1
164 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!