Skip to content

Commit e7839d5

Browse files
author
김가은
committed
two-sum solution
1 parent abfd7d9 commit e7839d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

two-sum/paran22.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ def twoSum(self, nums: List[int], target: int) -> List[int]:
66
for i, first_num in enumerate(nums):
77
second_num = target - first_num
88
if second_num in num_dict and num_dict[second_num] != i:
9-
return [i, num_dict[second_num]]
9+
return [i, num_dict[second_num]]
10+

0 commit comments

Comments
 (0)