Skip to content

Commit 0fe792a

Browse files
committed
leetcode Pacific Atlantic Water Flow py fix + test actions
1 parent 2c7a18b commit 0fe792a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: solutions/0417_pacific_atlantic_water_flow_rec.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ def pacificAtlantic(self, matrix):
1313
if not matrix: return []
1414
pacific,atlantic = set(),set()
1515
rows, cols = len(matrix),len(matrix[0])
16-
for i in xrange(cols):
16+
for i in range(cols):
1717
self.dfs(0,i,matrix,pacific,-1)
1818
self.dfs(rows-1,i,matrix,atlantic,-1)
19-
for i in xrange(rows):
19+
for i in range(rows):
2020
self.dfs(i,0,matrix,pacific,-1)
2121
self.dfs(i,cols-1,matrix,atlantic,-1)
2222
return list(pacific&atlantic)

0 commit comments

Comments
 (0)