Cody

Solution 1954948

Submitted on 1 Oct 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = 400; y_correct = [190 210]; assert(isequal(twoTriangular(x),y_correct))

p1 = 190 p2 = 210 y = 190 210

Assertion failed.

2   Fail
x = 196; y_correct = [91 105]; assert(isequal(twoTriangular(x),y_correct))

p1 = 6 91 p2 = 190 105 y = 6 91 190 105

Assertion failed.

3   Fail
x = 676; y_correct = [325 351]; assert(isequal(twoTriangular(x),y_correct))

p1 = 10 325 p2 = 666 351 y = 10 325 666 351

Assertion failed.

4   Fail
x = 1225; y_correct = [595 630]; assert(isequal(twoTriangular(x),y_correct))

p1 = 190 595 p2 = 1035 630 y = 190 595 1035 630

Assertion failed.

5   Fail
x = 1849; y_correct = [903 946]; assert(isequal(twoTriangular(x),y_correct))

p1 = 253 903 p2 = 1596 946 y = 253 903 1596 946

Assertion failed.

6   Fail
x = 10000; y_correct = [4950 5050]; assert(isequal(twoTriangular(x),y_correct))

p1 = 820 1485 4005 4950 p2 = 9180 8515 5995 5050 y = 820 1485 4005 4950 9180 8515 5995 5050

Assertion failed.

7   Fail
x = 11025; y_correct = [5460 5565]; assert(isequal(twoTriangular(x),y_correct))

p1 = 5460 p2 = 5565 y = 5460 5565

Assertion failed.

Suggested Problems

More from this Author59