Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
a = [9 9 9 9 9 97 7 76 6 6 5 54 2 1];
b = [1 1 13 3 3 44 4 10 110];
y_correct = [9 97 7 76 6 5 54 2 1 13 3 44 4 10 110];
assert(isequal(union_without_repitition(a,b),y_correct))
ans =
1 2 3 4 5 6 7 9 10 13 44 54 76 97 110
|
2 | Fail |
a = [96 6 65 54 2 1];
b = [1 13 3 3 3 44 4 4 410 10 10];
y_correct =[96 6 65 54 2 1 13 3 44 4 410 10];
assert(isequal(union_without_repitition(a,b),y_correct))
ans =
1 2 3 4 6 10 13 44 54 65 96 410
|
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
434 Solvers
The sum of the numbers in the vector
426 Solvers
424 Solvers
382 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!