Game of Life
LeetCode 289 • Medium • Arrays & Hashing • Anduril
In-place Conway update. Encode transitions (2=was live→dead, 3=was dead→live) then %= 2.
TimeO(mn)
SpaceO(1)
Live
Dead
step—
note—
Ready
Press Play to walk the algorithm.