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))
|
Sum of diagonal of a square matrix
1327 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
How many trades represent all the profit?
520 Solvers
Celsius to Fahrenheit converter
389 Solvers
424 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!