Given an m x n grid where each cell is either 0 (empty), 1 (fresh orange), or 2 (rotten orange), find the minimum time until no fresh oranges remain. Each minute, any fresh orange 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.