Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
for n = 3 : 12
y = odd_and_even_fun(n);
while length(y) ~= 1
y = cellfun(@(x)x(:)',mat2cell(cell2mat(reshape(y,2,'')),2,repelem(numel(y{1}),length(y)/2)),'uni',0);
end
assert(isequal(y{1},0:2^n-1))
end
|
Determine whether a vector is monotonically increasing
11925 Solvers
380 Solvers
Number of digits in an integer
336 Solvers
273 Solvers
123 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!