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 = 2;
k = 3;
y_correct = 0;
assert(isequal(combine(n,k),y_correct))
ans =
0
|
2 | Pass |
%%
n = 3;
k = 2;
y_correct = 3;
assert(isequal(combine(n,k),y_correct))
ans =
3
|
3 | Pass |
%%
n = 80;
k = 3;
y_correct = 82160;
assert(isequal(combine(n,k),y_correct))
ans =
82160
|
4 | Pass |
%%
n = 45;
k = 6;
y_correct = 8145060;
assert(isequal(combine(n,k),y_correct))
ans =
8145060
|
12380 Solvers
Remove any row in which a NaN appears
6827 Solvers
320 Solvers
Sort the vector with the given index
98 Solvers
95 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!