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 |
x = 5;
y_correct = 79;
assert(isequal(your_fcn_name(x),y_correct))
y =
79
|
2 | Pass |
x = [2 2 2 2];
y_correct = 4;
assert(isequal(your_fcn_name(x),y_correct))
y =
4
|
3 | Pass |
x = [5 12 13];
y_correct = 30;
assert(isequal(your_fcn_name(x),y_correct))
y =
30
|
4 | Pass |
x = [2 6 2 6];
y_correct = 12;
assert(isequal(your_fcn_name(x),y_correct))
x =
2 6
y =
12
|
8398 Solvers
Sort a list of complex numbers based on far they are from the origin.
3791 Solvers
276 Solvers
158 Solvers
182 Solvers