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(gameOfLife(A),B))
B =
1 1 0 0
0 0 1 0
1 1 0 0
0 0 0 0
|
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(gameOfLife(A),B))
B =
1 0 1 1
1 0 0 0
0 0 1 1
0 1 1 0
|
Find the two most distant points
1628 Solvers
3892 Solvers
1092 Solvers
Given a 4x4 matrix, swap the two middle columns
515 Solvers
320 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!