This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 2;
r_correct = -1;
assert(isequal(imagine(n), r_correct))
|
2 | Pass |
n = 7;
r_correct = -sqrt(-1);
assert(isequal(imagine(n), r_correct))
|
3 | Pass |
n = 2520;
r_correct = 1;
assert(isequal(imagine(n), r_correct))
|
4 | Pass |
n = 999914001;
r_correct = sqrt(-1);
assert(isequal(imagine(n), r_correct))
|
1836 Solvers
401 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
283 Solvers
find the maximum element of the matrix
348 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!