| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Kubernetes
- First Unique Character in a String
- hackerrank
- 알고리즘
- C++
- 문제해결
- 파이썬
- 코딩테스트
- 하늘과 바람과 별과 詩
- Count Monobit Integers
- Code Jam
- K8S
- Code Jam 2022
- 해커랭크
- LEVEL 2
- Qualification Round
- swift
- MySQL
- 프로그래머스
- GitLab
- leetcode
- 리트코드
- ProblemSoving
- ProblemSolving
- 3D PRINTING
- Algorithm
- Python
- 2022
- 하늘과 바람과 별과 시
Archives
- Today
- Total
목록Contains Duplicate (1)
공대생의 비망록
[LeetCode][Easy] Contains Duplicate 문제 Python 풀이
중첩 for-loop 활용 방법: class Solution: def containsDuplicate(self, nums: List[int]) -> bool: for i in range(len(nums)): for j in range(i + 1, len(nums)): if nums[i] == nums[j]: return True return False 집합 (Set) 자료구조 활용 방법: class Solution: def containsDuplicate(self, nums: List[int]) -> bool: exists = set() for num in nums..
Programming Language/Python
2026. 2. 5. 15:34