Apple logoApple
CodingMembers

Plant Infection Spread: Days Until Stable

Members only

Binary grid of plants (0 = healthy, 1 = infected). Each day, a healthy plant becomes infected if at least K of its 8 neighbors are infected. Return the number of days until no new plant becomes infect...

SWE
medium
grid
bfs
simulation
Frequency
Single report
Last asked
2026-10-02
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...