This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = [ ...
1 1 0 0
0 1 0 0
1 1 0 0
0 0 0 0];
B = [ ...
1 1 0 0
0 0 1 0
1 1 0 0
0 0 0 0];
assert(isequal(life(A),B))
|
2 | 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(life(A),B))
|
657 Solvers
537 Solvers
Reverse the Words (not letters) of a String
297 Solvers
521 Solvers
352 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!