Search
⌘K
Leetcode 289. Game of Life
Given an m×n binary grid of live (1) and dead (0) cells, compute the next generation of Conway's Game of Life by applying the 8-neighbor birth/survival/death rules simultaneously to every cell. The core challenge is enforcing simultaneous updates (often requiring in-place state-encoding or extra memory) and, optionally, handling an effectively infinite board via dynamic expansion or sparse representations.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early February, 2026
Amazon
Staff
Mid August, 2025
Amazon
Mid-level
Late June, 2025
Amazon
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.