Skip to content

Commit 9212834

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aa6ff0d commit 9212834

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

data_structures/arrays/ProductOfArrayExceptSelf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import List
22
import doctest
33

4+
45
class Solution:
56
def productExceptSelf(self, nums: List[int]) -> List[int]:
67
"""
@@ -50,6 +51,7 @@ def productExceptSelf(self, nums: List[int]) -> List[int]:
5051

5152
return answer
5253

54+
5355
# #optimized Answer
5456
# class Solution(object):
5557
# def productExceptSelf(self, nums):
@@ -84,11 +86,10 @@ def productExceptSelf(self, nums: List[int]) -> List[int]:
8486
[1, 2],
8587
[1, 1, 1],
8688
[-30, 30, -30, 30],
87-
[5, 0, 0, 5]
89+
[5, 0, 0, 5],
8890
]
8991

9092
print("\nRunning additional test cases:")
9193
for case in test_cases:
9294
result = sol.productExceptSelf(case)
9395
print(f"Input: {case} -> Output: {result}")
94-

0 commit comments

Comments
 (0)