21. Find H-Index
β GFG solution to Find H-Index: calculate researcher's H-index using efficient frequency counting and bucket sort technique. π
π§© Problem Description
π Examples
Example 1
Input: citations[] = [3, 0, 5, 3, 0]
Output: 3
Explanation: There are at least 3 papers with citation counts of 3, 5, and 3,
all having citations greater than or equal to 3.Example 2
Input: citations[] = [5, 1, 2, 4, 1]
Output: 2
Explanation: There are 3 papers (with citation counts of 5, 2, and 4) that have
2 or more citations. However, the H-Index cannot be 3 because there aren't 3 papers
with 3 or more citations.Example 3
π Constraints
β
My Approach
Descending Sort Approach
π Time and Auxiliary Space Complexity
π§βπ» Code (C)
π§βπ» Code (C++)
β Code (Java)
π Code (Python)
π§ Contribution and Support
πVisitor Count
Last updated