The '-' in line 6 of y_correct for test case 4 should be a '~'.
You are absolutely correct. My apologies for this mistake. I should have tested this, and I thought I had for most testcases.
Maximum running product for a string of numbers
1112 Solvers
220 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
Index of neighbor pixel with steepest gradient
17 Solvers
37 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!