Back to course home
0% completed
Vote For New Content
Solution: H-Index
Problem Statement
Given an integer array citations
where citations[i]
represents the number of times a researcher's i<sup>th</sup> paper has been cited, return the researcher's h-index.
The h-index is defined as the maximum number h such that the researcher has h papers with at least h citations each.
Examples
Example 1
- Input: citations = [4, 3, 0, 1, 5]
- Expected Output: 3
- Justification: The researcher has 3 papers with at least 3 citations each.
Example 2
- Input: citations = [10, 8, 5, 4, 3, 7, 2, 1]
- Expected Output: 4
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page