994
-
[LeetCode] 994. Rotting OrangesLeetCode 2021. 10. 29. 12:46
https://leetcode.com/problems/rotting-oranges/ Rotting Oranges - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Rotting Oranges - Medium grid에 오렌지들과 그 상태가 들어있다. 0일경우엔 없고, 1일 경우 신선한 오렌지, 2일 경우 썩은 오렌지가 있다. 썩은 오렌지는 1분이 지날때마다 위,아래,왼쪽,오른쪽 오렌지를 썩게 만든다. 이때, 모든 오렌지가 썩을때까지 걸리는 최소 시간을 구하는 문..