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
- Array
- 이진트리
- Medium
- binary search
- hash table
- dfs
- tree
- backtracking
- recursive
- sorting
- binary tree
- 재귀
- Binary
- easy
- matrix
- two pointers
- 중간
- list
- DP
- math
- 미디움
- linked list
- Depth-first Search
- 리트코드
- 쉬움
- 문자열
- Python
- leetcode
- HashTable
- string
Archives
- Today
- Total
목록leetcod 219 (1)
부부의 코딩 성장 일기
LeetCode 210(Contains Duplicate II, Python)
1. 문제 링크 https://leetcode.com/problems/contains-duplicate-ii/description/ Contains Duplicate II - LeetCode Can you solve this real interview question? Contains Duplicate II - Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) k: window.remove(nums[i - k]) return False
카테고리 없음
2024. 2. 6. 19:00