Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 2 2 3 4 4 3 5];
y_correct = [1 2 3 4 3 5];
assert(isequal(noTwins(x),y_correct))
x = [1 1 2 2 2 3 4 4 1 1];
y_correct = [1 2 3 4 1];
assert(isequal(noTwins(x),y_correct))
|
134 Solvers
441 Solvers
Compute a dot product of two vectors x and y
645 Solvers
307 Solvers
255 Solvers