This should not work in general. It returns false-positive for consecutive 1 5 7 :-)
473 Solvers
280 Solvers
210 Solvers
178 Solvers
compress sequence into intervals
55 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!