This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = -2:2;
y_correct = [0 0 1 1 1];
assert(isequal(HL(x),y_correct))
|
2 | Pass |
%%
x = -3:3;
y_correct = [ 0 0 0 1 1 1 1];
assert(isequal(HL(x),y_correct))
|
Determine whether a vector is monotonically increasing
9255 Solvers
Calculate the area of a triangle between three points
278 Solvers
261 Solvers
394 Solvers
07 - Common functions and indexing 1
268 Solvers