Test suite case 3 seems to be incorrect.
yeah, test case 3 should be [1 1 2 3 1 1 1 5 2 2] by my calculation
Sorry about that. Cut and paste fail.
Test case 3 is still incorrect.
I tried solving this in MATLAB & it gave correct answer for the 3rd test suite also
232 Solvers
Back to basics 12 - Input Arguments
525 Solvers
Convert from Base 10 to base 5
203 Solvers
278 Solvers
Unique values without using UNIQUE function
171 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!