This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 1;
y_correct = 1;
assert(isequal(UltimoNumero(n),y_correct))
|
2 | Pass |
n = 2;
y_correct = [1,2,2];
assert(isequal(UltimoNumero(n),y_correct))
|
3 | Pass |
n = 6;
y_correct = [1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6];
assert(isequal(UltimoNumero(n),y_correct))
|
Arrange vector in ascending order
624 Solvers
190 Solvers
445 Solvers
Find out sum and carry of Binary adder
380 Solvers
Create sequnce 1 4 9 16 25.........
190 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!