MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / Solution

Class Solution

LeetCode_problems/H_Index/solution.py:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60class 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

no outgoing calls

Tested by

no test coverage detected