This should not work in general. It returns false-positive for consecutive 1 5 7 :-)
1432 Solvers
1270 Solvers
Matrix with different incremental runs
251 Solvers
977 Solvers
2942 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!