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.
337 Solvers
Are all the three given point in the same line?
270 Solvers
Getting the indices from a matrice
360 Solvers
185 Solvers
Put m balls into n boxes (again)
34 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!