Rotting Oranges
CodingPhoneSoftware EngineerReported Feb, 2026
Company question banks are included with the Insider plan.
You are given an m x n grid where 0 is empty, 1 is a fresh orange, and 2 is a rotten orange.
Every minute, any fresh orange adjacent in the four cardinal directions to a rotten orange also...