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))
|
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))
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13055 Solvers
199 Solvers
309 Solvers
Output any real number that is neither positive nor negative
316 Solvers
436 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!