Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 400;
y_correct = [190 210];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
2 | Pass |
x = 196;
y_correct = [91 105];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
3 | Pass |
x = 676;
y_correct = [325 351];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
4 | Pass |
x = 1225;
y_correct = [595 630];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
5 | Pass |
x = 1849;
y_correct = [903 946];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
6 | Pass |
x = 10000;
y_correct = [4950 5050];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
7 | Pass |
x = 11025;
y_correct = [5460 5565];
assert(isequal(twoTriangular(x),y_correct))
a =
0
|
Return the 3n+1 sequence for n
6167 Solvers
All your base are belong to us
463 Solvers
Project Euler: Problem 10, Sum of Primes
707 Solvers
664 Solvers
87 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!