Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- two sum
- Array
- 른당사피
- two pointers
- LeetCode
- 발리 음식
- 해물감성포차
- Python
- prefix sum
- 사당돈
- 6월 첼린지
- 투포인터
- algorithm
- map
- 맛집
- tree
- 코딩 테세트
- 발리인망원
- 망원 밥집
- findDulicate
- 알고리즘
- linked list
- algorithum
- string
- invert Binary Tree
- Find the Duplicate Number
- 코딩 테스트
- 코테
- java
- 알탕뚝배기
Archives
- Today
- Total
목록two sum (1)
기록하는 공간
[leetcode/python3] 1. Two Sum
https://leetcode.com/problems/two-sum/ Two Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: res = [] dicts = {} for i in range(len(nums)): if (target - nums[i]) in dicts: value = dicts[target - nums[i..
알고리즘/leetcode
2021. 8. 3. 23:46