Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
numbers=[9 8];
operator='+';
value=1;
assert(isequal(ReverseCalculator(numbers,operator),value))
|
2 | Pass |
numbers=[7 2];
operator='-';
value=-5;
assert(isequal(ReverseCalculator(numbers,operator),value))
|
3 | Pass |
numbers=[0 6];
operator='/';
value=3;
assert(isequal(ReverseCalculator(numbers,operator),value))
|
4 | Pass |
numbers=[1 5];
operator='*';
value=32;
assert(isequal(ReverseCalculator(numbers,operator),value))
|
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
312 Solvers
309 Solvers
Sum the numbers on the main diagonal
453 Solvers
Create an index-powered vector
352 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!