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))
ans =
[]
ans =
[]
|
486 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
Create a cell array out of a struct
508 Solvers
407 Solvers
516 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!