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 경진대회
- 편스토랑 우승상품
- 프로그래머스
- 코로나19
- Git
- hackerrank
- 맥북
- leetcode
- 더현대서울 맛집
- Docker
- SW Expert Academy
- dacon
- 우분투
- Real or Not? NLP with Disaster Tweets
- 자연어처리
- 파이썬
- ubuntu
- 프로그래머스 파이썬
- programmers
- PYTHON
- Baekjoon
- 데이콘
- 캐치카페
- 백준
- github
- 편스토랑
- ChatGPT
- Kaggle
- 금융문자분석경진대회
- gs25
Archives
- Today
- Total
목록
반응형
2020/10/13 (1)
반응형
솜씨좋은장씨
[leetCode] 442. Find All Duplicates in an Array (Python)
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twice in this array. Could you do it without extra space and in O(n) runtime? Example: Input: [4,3,2,7,8,2,3,1] Output: [2,3] Solution from collections import Counter class Solution: def findDuplicates(self, nums: List[int]) -> List[int]: cnt_items = ..
Programming/코딩 1일 1문제
2020. 10. 13. 22:30
반응형