Available question text
Given an 8-cell binary row updated daily where each interior cell becomes 1 iff its two neighbors are equal (edge cells become 0), return the state after n days. Because cells.length is fixed (8) and n can be up to 1e9, the solution relies on detecting and fast-forwarding through the repeating cycle of states.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 957. Prison Cells After N Days
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source