본문 바로가기
Programmers

[python] H-Index

by DylanMsK 2019. 8. 31.

문제 출처

H-Index

 

풀이


def solution(citations):
    citations.sort()
    l = len(citations)
    for i in range(l):
        if citations[i] >= l-i:
            return l-i
    return 0
    

'Programmers' 카테고리의 다른 글

[python] 네트워크  (0) 2019.09.01
[python] 타겟 넘버  (0) 2019.09.01
[python] 가장 큰 수  (0) 2019.08.31
[python] K번째수  (0) 2019.08.31
[python] 숫자 야구  (0) 2019.08.30