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
- axios
- 항해플러스
- react-router
- Algorithm
- SW
- C++
- useDispatch
- redux
- programmers
- 매일메일
- react
- Get
- 자바
- 알고리즘
- sw expert academy
- 항해99
- createSlice
- JavaScript
- json-server
- 테코테코
- redux-toolkit
- 리액트
- maeil-mail
- react-redux
- Python
- 코딩테스트합격자되기
- 프로그래머스
- java
- 이코테
- redux-saga
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 |