Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 4 9 16 25];
y_correct = [1 3 2];
assert(isequal(seq2commondiff(x),y_correct))
|
2 | Fail |
x = [1 9 29 67 129 221];
y_correct = [1 8 12 6];
assert(isequal(seq2commondiff(x),y_correct))
|
3 | Fail |
x = [3 4 9 23 51 98 169 269 403 576];
y_correct = [3 1 4 5];
assert(isequal(seq2commondiff(x),y_correct))
|
4 | Fail |
x = [1 8 27 64 125 216];
y_correct = [1 7 12 6];
assert(isequal(seq2commondiff(x),y_correct))
|
5 | Fail |
x = [2 0 2 9 22 42];
y_correct = [2 -2 4 1];
assert(isequal(seq2commondiff(x),y_correct))
|
6 | Fail |
x=[1 8 28 67 131 226]
y_correct = [1 7 13 6];
assert(isequal(seq2commondiff(x),y_correct))
x =
1 8 28 67 131 226
|
1159 Solvers
337 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
88 Solvers
Make a random, non-repeating vector.
2795 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!