Interesting problem but tests are too tricky.
I am not sure that a list of equal numbers qualifies as a series. Would it be a geometric or an arithmetic series?
'Randperm' is making this question a whole lot harder...
Make a run-length companion vector
524 Solvers
287 Solvers
Decimation - Optimized for speed
96 Solvers
322 Solvers
271 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!