Cody

Solution 2501261

Submitted on 9 Jun 2020 by Jerry Wright
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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))

c2 = 2 2 2 1 5 4 3 2 2 2 2 1 4 4 2 2

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))

c2 = 3 4 3 3 2 5 4 4 2 4 2 3 1 3 3 2