MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions / destroy

Method destroy

Python/994_Rotting_Oranges.py:41–45  ·  view source on GitHub ↗
(self, grid, i, j, n, m, rotten)

Source from the content-addressed store, hash-verified

39 return cycles-1
40
41 def destroy(self, grid, i, j, n, m, rotten):
42 if 0<=i<n and 0<=j<m:
43 if grid[i][j] == 1:
44 rotten.append((i,j))
45 grid[i][j]=2
46
47

Callers 1

orangesRottingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected