Skip to content

Commit 2e0702f

Browse files
committed
fix:줄바꿈
1 parent 6671dcf commit 2e0702f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

two-sum/socow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# 3. 그 complement가 이미 딕셔너리에 있다면?
44
# → 그 숫자와 현재 숫자가 합쳐서 target이 된다는 뜻!
55
# 4. 없다면 현재 숫자를 딕셔너리에 저장해서 다음에 대비한다.
6+
67
class Solution:
78
def twoSum(self, nums: List[int], target: int) -> List[int]:
89
num_map = {}
@@ -12,6 +13,5 @@ def twoSum(self, nums: List[int], target: int) -> List[int]:
1213

1314
if complement in num_map:
1415
return [num_map[complement], i]
15-
1616
num_map[num] = i
1717

0 commit comments

Comments
 (0)