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
- SW Expert Academy
- dacon
- 백준
- Baekjoon
- AI 경진대회
- PYTHON
- 맥북
- Real or Not? NLP with Disaster Tweets
- hackerrank
- Git
- 더현대서울 맛집
- gs25
- 자연어처리
- 우분투
- Kaggle
- 캐치카페
- github
- 파이썬
- 데이콘
- Docker
- 금융문자분석경진대회
- 프로그래머스
- ChatGPT
- 편스토랑
- ubuntu
- 코로나19
- leetcode
- 프로그래머스 파이썬
- programmers
- 편스토랑 우승상품
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
반응형