Given a 2D grid containing 0 (empty cell), 1 (fresh orange), or 2 (rotten orange). Every minute, any fresh orange that is 4-directionally adjacent to a rotten orange becomes rotten. Return the minimum…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.