Skip to content

Commit d367ddd

Browse files
committed
Time: 379 ms (71.21%) | Memory: 17.3 MB (53.54%) - LeetSync
1 parent 8e87960 commit d367ddd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

661-image-smoother/image-smoother.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
class Solution:
22
def imageSmoother(self, img: List[List[int]]) -> List[List[int]]:
33
rows, cols = len(img), len(img[0])
4-
# create empty list of 0s
54
result = [[0] * cols for _ in range(rows)]
65

76
for row in range(rows):
@@ -13,7 +12,6 @@ def imageSmoother(self, img: List[List[int]]) -> List[List[int]]:
1312
continue
1413
total += img[i][j]
1514
count += 1
16-
1715
result[row][col] = total // count
1816

1917
return result

0 commit comments

Comments
 (0)