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 common elements in matrix rows
1274 Solvers
716 Solvers
Number of 1s in the Binary Representation of a Number
359 Solvers
242 Solvers
Recurring Cycle Length (Inspired by Project Euler Problem 26)
69 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!