문제


풀이

def solution(citations):
    h = len(citations)

    while True:
        if len([x for x in citations if x>=h])>=h:
            break
        else:
            h -= 1
    answer = h
    return answer


Reference

https://en.wikipedia.org/wiki/H-index