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
- 우분투
- programmers
- 맥북
- 편스토랑
- PYTHON
- 자연어처리
- 금융문자분석경진대회
- 코로나19
- dacon
- github
- gs25
- Real or Not? NLP with Disaster Tweets
- ChatGPT
- Docker
- AI 경진대회
- leetcode
- Kaggle
- 프로그래머스
- ubuntu
- 프로그래머스 파이썬
- 더현대서울 맛집
- 백준
- Baekjoon
- hackerrank
- 편스토랑 우승상품
- 파이썬
- 캐치카페
- 데이콘
- Git
- SW Expert Academy
Archives
- Today
- Total
목록
반응형
1394. Find Lucky Integer in an Array (1)
반응형
솜씨좋은장씨
[leetCode] 1394. Find Lucky Integer in an Array (Python)
Given an array of integers arr, a lucky integer is an integer which has a frequency in the array equal to its value. Return a lucky integer in the array. If there are multiple lucky integers return the largest of them. If there is no lucky integer return -1. Example 1: Input: arr = [2,2,3,4] Output: 2 Explanation: The only lucky number in the array is 2 because frequency[2] == 2. Example 2: Inpu..
Programming/코딩 1일 1문제
2020. 11. 11. 01:31
반응형