H-Index에 대한 이해가 부족해서 헤맸습니다.
H-Index에 대한 설명이 충분한 링크를 첨부합니다.
def solution(citations):
citation_count = 0
paper_num = 1
citations.sort()
while True:
for citation in citations:
if citation >= paper_num:
citation_count += 1
if citation_count <= paper_num:
break
paper_num += 1
citation_count = 0
return citation_count
'알고리즘 > 프로그래머스' 카테고리의 다른 글
[프로그래머스] 오픈채팅방 (python) (0) | 2021.06.26 |
---|---|
[프로그래머스] 큰 수 만들기 (0) | 2021.06.23 |
[프로그래머스] 위장(python) (0) | 2021.06.22 |
[프로그래머스] 전화번호 목록(python) (0) | 2021.06.21 |
[프로그래머스] 프린터(python) (0) | 2021.06.20 |
댓글