This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = [ ...
0 1 1 0
1 1 1 0
0 0 1 0
0 0 0 0];
B = [ ...
1 0 1 1
1 0 0 0
0 0 1 1
0 1 1 0];
assert(isequal(gameOfLife(A),B))
|
Return the 3n+1 sequence for n
6170 Solvers
272 Solvers
Convert a vector into a number
503 Solvers
Getting the absolute index from a matrix
211 Solvers
462 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!