274-H-Index
Fri 14 November 2025
https://leetcode.com/problems/h-index
import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
def hIndex(self, citations: List[int]) -> int:
n = len(citations)
accumulate = 0
count = [0] * (n + 1)
for citation in citations:
count[min(citation, n)] += 1
# To find the largeset …Category: leetcode
Read More