Cody

Solution 1738014

Submitted on 27 Feb 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
n = 2; r_correct = -1; assert(isequal(imagine(n), r_correct))

Assertion failed.

2   Fail
n = 7; r_correct = -sqrt(-1); assert(isequal(imagine(n), r_correct))

Assertion failed.

3   Fail
n = 2520; r_correct = 1; assert(isequal(imagine(n), r_correct))

Assertion failed.

4   Fail
n = 999914001; r_correct = sqrt(-1); assert(isequal(imagine(n), r_correct))

Assertion failed.

Suggested Problems

More from this Author1