Cody

Solution 1992586

Submitted on 27 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 = 1; n = 6; y_correct = 7; assert(isequal(simplePoly(x,n),y_correct))

y = 6

Assertion failed.

2   Fail
x = 2; n = 11; y_correct = 4095; assert(isequal(simplePoly(x,n),y_correct))

y = 2047

Assertion failed.

3   Pass
x = 0; n = 444; y_correct = 1; assert(isequal(simplePoly(x,n),y_correct))

y = 1

4   Fail
x = -2; n = 3; y_correct = -5; assert(isequal(simplePoly(x,n),y_correct))

y = 3

Assertion failed.

5   Fail
x = 2; n = 0; y_correct = 1; assert(isequal(simplePoly(x,n),y_correct))

y = 0

Assertion failed.

Suggested Problems

More from this Author14