Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- AI 경진대회
- 파이썬
- 편스토랑
- ubuntu
- Git
- leetcode
- 코로나19
- gs25
- 금융문자분석경진대회
- Kaggle
- PYTHON
- 백준
- Docker
- 데이콘
- SW Expert Academy
- 자연어처리
- Real or Not? NLP with Disaster Tweets
- 더현대서울 맛집
- 프로그래머스
- ChatGPT
- github
- dacon
- Baekjoon
- 우분투
- programmers
- hackerrank
- 프로그래머스 파이썬
- 캐치카페
- 편스토랑 우승상품
- 맥북
Archives
- Today
- Total
목록
반응형
219. Contains Duplicate II (1)
반응형
솜씨좋은장씨
[leetCode] 219. Contains Duplicate II (Python)
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at most k. Example 1: Input: nums = [1,2,3,1], k = 3 Output: true Example 2: Input: nums = [1,0,1,1], k = 1 Output: true Example 3: Input: nums = [1,2,3,1,2,3], k = 2 Output: false Solution class Solution: def..
Programming/코딩 1일 1문제
2020. 10. 28. 19:47
반응형