Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 40;
y = [40 20 10 4];
z_correct = [1 0 0 0; 0 2 0 0; 0 1 2 0; 0 1 1 3; 0 1 0 5; 0 0 4 0; 0 0 3 3; 0 0 2 5; 0 0 1 8; 0 0 0 10];
assert(isequal(your_fcn_name(x,y),z_correct))
|
2 | Pass |
x = 13;
y = [40 20 10 4];
z_correct = [1 0 0 0; 0 1 0 0; 0 0 2 0; 0 0 1 1; 0 0 0 4];
assert(isequal(your_fcn_name(x,y),z_correct))
|
3 | Pass |
x = 19;
y = [10 4];
z_correct = [2 0; 1 3; 0 5];
assert(isequal(your_fcn_name(x,y),z_correct))
|
Return unique values without sorting
588 Solvers
How many trades represent all the profit?
520 Solvers
277 Solvers
Convert to Binary Coded Decimal
76 Solvers
Pernicious Anniversary Problem
735 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!