It looks like there's an error in the test suite; test cases 3 and 4 have different length d and n vectors.
Oof! I hate it when that happens. Fixed it. Thanks for the note.
Find the peak 3n+1 sequence value
1108 Solvers
Back to basics 9 - Indexed References
392 Solvers
Vectorizing, too easy or too hard?
128 Solvers
1425 Solvers
380 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!