Skip to content

Commit fcc230c

Browse files
authored
Update Rotting Oranges - Leetcode 994.py
1 parent 0a2d746 commit fcc230c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Rotting Oranges - Leetcode 994/Rotting Oranges - Leetcode 994.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ def orangesRotting(self, grid):
1717
elif grid[i][j] == 1:
1818
FreshCount += 1
1919

20-
# Directions for adjacent cells (right, down, left, up)
21-
Directions = [(0, 1), (1, 0), (0, -1), (-1, 0)]
22-
2320
# Perform BFS
2421
while Q and FreshCount > 0:
2522
NumRotting = len(Q)

0 commit comments

Comments
 (0)