We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af4eecc commit b643938Copy full SHA for b643938
Python/01-matrix.py
@@ -8,7 +8,6 @@ def updateMatrix(self, matrix):
8
:type matrix: List[List[int]]
9
:rtype: List[List[int]]
10
"""
11
- dp = [[float("inf")]*len(matrix[0]) for _ in xrange(len(matrix))]
12
for i in xrange(len(matrix)):
13
for j in xrange(len(matrix[i])):
14
if not matrix[i][j]:
0 commit comments