def hIndex(self, citations):
"""
:type citations: List[int]
:rtype: int
"""
return max(map(min, enumerate(sorted(citations, reverse=True), 1))) if citations else 0
According to the formula, easy to solve this problem

Hi, kilimchoi. You may refer to the wikipedia page on HIndex for some explanations. The formula is just taken from there.