Given a grid where 0 is empty, 1 is a fresh orange and 2 is a rotten orange, find the minimum time for all oranges to become rotten. Each unit of time, fresh oranges next to a rotten one (up, down…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.