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 longest sequence of 1's in a binary sequence.
3414 Solvers
1056 Solvers
Project Euler: Problem 5, Smallest multiple
408 Solvers
Convert a structure into a string
96 Solvers
Detect a number and replace with two NaN's
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!