Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- C++
- createSlice
- axios
- redux
- 자바
- java
- SW
- 항해99
- Get
- 코딩테스트합격자되기
- 알고리즘
- JavaScript
- 매일메일
- 테코테코
- 이코테
- Python
- react-redux
- react
- react-router
- sw expert academy
- maeil-mail
- redux-saga
- 항해플러스
- 리액트
- json-server
- Algorithm
- redux-toolkit
- programmers
- useDispatch
- 프로그래머스
Archives
- Today
- Total
Binary Journey
[프로그래머스] H-Index 본문
반응형
출처: 프로그래머스 코딩 테스트 연습, https://programmers.co.kr/learn/challenges

def solution(citations):
citations.sort()
for i, citation in enumerate(citations):
if citation >= len(citations) - i:
return len(citations) - i
return 0
반응형
'프로그래머스 > level 2' 카테고리의 다른 글
| [프로그래머스] 소수찾기 (0) | 2022.08.06 |
|---|---|
| [프로그래머스] 카펫 (0) | 2022.07.07 |
| [프로그래머스] 다리를 지나는 트럭 (1) | 2022.06.01 |
| [프로그래머스] 기능개발 (0) | 2022.05.25 |
| [프로그래머스] 행렬 테두리 회전하기 (0) | 2022.05.12 |