Practice Problem

Game of Life

Difficulty: Medium

Implement Conway's Game of Life: compute the next state of a board in-place using state-encoding to avoid extra space.