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))
|
Find the sum of the elements in the "second" diagonal
994 Solvers
Remove white space from the string
168 Solvers
511 Solvers
405 Solvers
2617 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!