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 |
Tags
- 더현대서울 맛집
- leetcode
- SW Expert Academy
- programmers
- 데이콘
- AI 경진대회
- 코로나19
- 자연어처리
- ubuntu
- gs25
- Real or Not? NLP with Disaster Tweets
- Docker
- 파이썬
- 맥북
- 우분투
- 프로그래머스 파이썬
- 편스토랑
- 백준
- github
- Git
- Kaggle
- 편스토랑 우승상품
- 프로그래머스
- Baekjoon
- hackerrank
- 캐치카페
- dacon
- PYTHON
- 금융문자분석경진대회
- ChatGPT
Archives
- Today
- Total
목록
반응형
347. Top K Frequent Elements (1)
반응형
솜씨좋은장씨
[leetCode] 347. Top K Frequent Elements (Python)
Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [1], k = 1 Output: [1] Note: You may assume k is always valid, 1 ≤ k ≤ number of unique elements. Your algorithm's time complexity must be better than O(n log n), where n is the array's size. It's guaranteed that the answer is unique, in o..
Programming/코딩 1일 1문제
2020. 10. 14. 00:10
반응형