Another Game of Life
CodeChefOpen on judge ↗
In 1970, John Conway created a cellular automaton, the Game of Life. In this problem, we will consider a modified version of the Game of Life called VastoLorde's Game of Life, and we will be focusing on just one single second of change. Suppose you start with grid $A$ which has dimensions $H \times W$. The top left cell being $A[1][1]$ and the bottom right cell being $A[H][W]$. Each cell $(i,j)$
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start