Plant Infection Simulation
You are given an R x C grid where each cell is: 0 = healthy, 1 = infected, 2 = immune, 3 = dead. Every day all cells update synchronously based on the state at the start of that day (so a cell new...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
