LeetCode MEDIUM 994 Rotting Oranges Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Rotting Oranges
- Main tags:
Array,Breadth-First Search,Matrix
Problem gist
The grid has three kinds of cells: empty (0), fresh oranges (1), and rotten oranges (2). Every minute, any fresh orange touching a rotten orange in the four main directions also becomes rotten.