Skip to content

Commit c3e02c2

Browse files
committed
Update ProdArrayExceptSelf.py
1 parent d98b72b commit c3e02c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LeetCode/ArraysAndHashing/ProdArrayExceptSelf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def productExceptSelf(self, nums: List[int]) -> List[int]:
2020
ans = [] #empty list that will contain the product
2121

2222
for i in range(len(nums)):
23-
ans.append(leftProd[i] * rightProd[i]) #multiply noth arrays at the same index
23+
ans.append(leftProd[i] * rightProd[i]) #multiply both arrays at the same index
2424

2525
return ans
2626

0 commit comments

Comments
 (0)