Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ hIndex
Method
hIndex
LeetCode_problems/H_Index/solution.py:62–63 ·
view source on GitHub ↗
(self, citations: List[int])
Source
from the content-addressed store, hash-verified
60
class
Solution:
61
62
def
hIndex(self, citations: List[int]) -> int:
63
return
sum(i < j
for
i, j in enumerate(sorted(citations, reverse=True)))
Callers
nothing calls this directly
Calls
1
sum
Function · 0.85
Tested by
no test coverage detected