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.
2216 Solvers
1323 Solvers
355 Solvers
Return a list sorted by number of consecutive occurrences
179 Solvers
Number of Even Elements in Fibonacci Sequence
698 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!