Snap | Phone Screen | SWE Backend
Anonymous User
1485
You have a box of mxn grids.
Each grid can have one apple.
Some apples are bad, and some are good.
Bad apples will make the neighboring apple become bad too every hour
Return the minium hours that all apples become bad
Comments (6)