This solution is outdated. To rescore this solution, sign in.
Ties the current leader in size, but works on all board sizes.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
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))
|
1935 Solvers
729 Solvers
middleAsColumn: Return all but first and last element as a column vector
314 Solvers
Compute a dot product of two vectors x and y
645 Solvers
325 Solvers