What this solution is wrong?
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
assert(isequal(times2(1),2));
|
2 | Pass |
%%
assert(isequal(times2(11),22));
|
3 | Fail |
%%
assert(isequal(times2(-3),-6));
Error: Double inputs must have integer values in the range of ASSUMEDTYPE.
|
4 | Pass |
%%
assert(isequal(times2(29),58));
|
5703 Solvers
483 Solvers
2240 Solvers
Getting the indices from a vector
3208 Solvers
Given a window, how many subsets of a vector sum positive
743 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!