Days Until Plant Poisoning Stabilizes
Given an m × n grid of plants:
0represents a healthy plant.1represents an already poisoned plant.
On each day, examine all currently healthy plants simultaneously. A healthy plant b...
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:
