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))
|
951 Solvers
2197 Solvers
Arrange vector in ascending order
624 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
205 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!