Skip to content

Commit ee42edc

Browse files
committed
Enter end line
1 parent c3bc51b commit ee42edc

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

number-of-1-bits/HYUNAHKO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def hammingWeight(self, n: int) -> int:
77
result+=1
88
n = n//2
99
return result
10-
10+

product-of-array-except-self/HYUNAHKO.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,3 @@ def productExceptSelf(self, nums: List[int]) -> List[int]:
1717

1818
return result_list
1919

20-
21-
22-
class Solution:
23-
def productExceptSelf(self, nums: List[int]) -> List[int]:
24-
result_list = [0] * len(nums)
25-
if len(nums) <2 or len(nums) > 1e5:
26-
return None
27-
28-
for idx in range(0, len(nums)):
29-
result = 1
30-
for idx_left in range(0, idx):
31-
result *= nums[idx_left]
32-
33-
for idx_right in range(idx+1, len(nums)):
34-
result *= nums[idx_right]
35-
36-
result_list[idx] = result
37-
38-
39-
return result_list
40-
41-

0 commit comments

Comments
 (0)