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 = 3;
y_correct = 3;
assert(isequal(nbr_groups(n),y_correct))
|
2 | Pass |
n = 8;
y_correct = 2;
assert(isequal(nbr_groups(n),y_correct))
|
3 | Pass |
n = 13;
y_correct = 1;
assert(isequal(nbr_groups(n),y_correct))
|
4 | Pass |
n = 18;
y_correct = 0;
assert(isequal(nbr_groups(n),y_correct))
|
1051 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
547 Solvers
282 Solvers
07 - Common functions and indexing 5
314 Solvers
465 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!