Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
flagSame = isequal(makeRandomOrdering(n), makeRandomOrdering(n));
flagAllUsed = isequal([1:n],sort(makeRandomOrdering(n)));
assert(~flagSame & flagAllUsed)
|
Return the 3n+1 sequence for n
6168 Solvers
1163 Solvers
1263 Solvers
1882 Solvers
555 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!