본문 바로가기

기록하는 공간

검색하기
기록하는 공간
프로필사진

  • 분류 전체보기 (38)
    • 알고리즘 (34)
      • leetcode (29)
      • Codility (5)
    • 프로그래밍 (0)
      • Spring (0)
      • Kotlin (0)
    • 도서 (1)
      • Clean Code (1)
    • 맛집 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 알탕뚝배기
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바