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 = -1;
y_correct = 1;
assert(isequal(own_abs(x),y_correct))
|
1123 Solvers
244 Solvers
126 Solvers
Find the sum of the largest two elements in a vector
39 Solvers
90 Solvers