Even though this problem is simple, it would be helpful to expand the test suite to prevent gaming the system.
This user (ALBERT ALEXANDER STONIER) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
620 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3630 Solvers
184 Solvers
214 Solvers
260 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!