Codingeasy
Cell state transition in 2D array
Filed under Sahaj Software Solutions
The question
Given a 2D array filled with 0s and 1s, update cells such that a cell remains 1 only if 2 or 3 of its neighbors are 1, otherwise it becomes 0.
No write-up yet. Related questions below have one.
Related Sahaj Software Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.