This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 10 3 0 2 4 0 -8 9 1]
y_correct = [8 9];
assert(isequal(maxChange(x),y_correct))
x =
1 10 3 0 2 4 0 -8 9 1
|
2 | Pass |
%%
x = [10 15 2 18 40]
y_correct = [4 5];
assert(isequal(maxChange(x),y_correct))
x =
10 15 2 18 40
|
6283 Solvers
348 Solvers
359 Solvers
218 Solvers
find the surface area of a cube
336 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!