The test suite is not correct. Question is if sum of y is larger; not sum of x. And function arguments in test suite should include y.
Also, test suite does not define y_correct.
The test suite is not correct.
17235 Solvers
6071 Solvers
Find the peak 3n+1 sequence value
1108 Solvers
Sum of first n terms of a harmonic progression
258 Solvers
489 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!