본문 바로가기

부부의 코딩 성장 일기

검색하기
부부의 코딩 성장 일기
프로필사진 펩시_콜라

  • 분류 전체보기 (147)
    • Algorithm (135)
      • LeetCode (135)
    • Python (6)
      • Fundamentals (5)
      • Libraries (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/10   »
일 월 화 수 목 금 토
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
  • 쉬움
  • Python
  • DP
  • leetcode
  • easy
  • linked list
  • matrix
  • recursive
  • 문자열
  • Array
  • binary tree
  • 리트코드
  • tree
  • backtracking
  • list
  • 미디움
  • HashTable
  • sorting
  • 이진트리
  • Depth-first Search
  • Binary
  • Medium
  • hash table
  • string
  • 재귀
  • math
  • two pointers
  • binary search
  • 중간
  • dfs
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록4Sum (1)

부부의 코딩 성장 일기

LeetCode 18(4Sum, Python)

1. 문제 링크 https://leetcode.com/problems/4sum/description/ 4Sum - LeetCode Can you solve this real interview question? 4Sum - Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that: * 0 List[List[int]]: nums.sort() output = [] for i in range(len(nums)-3): if i > 0 and nums[i] == nums[i - 1]: continue # 중복된 값을 건너뛰기 for j in ra..

Algorithm/LeetCode 2023. 12. 17. 19:00
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바