Computistics
  • 홈
  • 태그
  • 방명록
  • Github
    • 전체 카테고리 (35)
      • Vision AI (7)
        • Classification (2)
        • Object Detection (4)
        • Segmentation (0)
        • etc. (1)
      • Model Compression (6)
      • Pytorch (8)
        • Tutorials (8)
      • Python (14)
        • OpenCV (6)
        • 공부하며적어놓는기록장 (8)
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
파이썬 알고리즘 인터뷰 검색 결과
1 개의 검색 결과가 있습니다.
Python/공부하며적어놓는기록장

[LeetCode] 4. 세 수의 합

LeetCode 15번 문제는 포인터라는 개념을 이용해서 문제를 풀이한다. 우선 문제풀이는 아래와 같다. class Solution: def threeSum(self, nums: List[int]) -> List[List[int]]: nums.sort() result = [] for i in range(len(nums) - 2): if i > 0 and nums[i] == nums[i - 1]: continue left, right = i + 1, len(nums) - 1 while left 0: right -= 1 else: result.append([nu..

2020. 12. 31. 13:13
  • «
  • 1
  • »

공지사항

전체 카테고리

  • 전체 카테고리 (35)
    • Vision AI (7)
      • Classification (2)
      • Object Detection (4)
      • Segmentation (0)
      • etc. (1)
    • Model Compression (6)
    • Pytorch (8)
      • Tutorials (8)
    • Python (14)
      • OpenCV (6)
      • 공부하며적어놓는기록장 (8)
반응형
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote/라이프코리아 Copyright © Computistics All rights reserved. TistoryWhaleSkin3.4

티스토리툴바