You are given an m x n grid where each cell can have one of three values: 0 (empty), 1 (fresh orange), or 2 (rotten orange). Every minute, any fresh orange that is 4-directionally adjacent to a rotten…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.