-
Notifications
You must be signed in to change notification settings - Fork 60
[PROBLEM] 274. H-Index #155
Copy link
Copy link
Open
Labels
difficulty: mediumMedium difficulty problem.Medium difficulty problem.hacktoberfestHacktoberfest issue.Hacktoberfest issue.problemLeetCode problem.LeetCode problem.
Description
Activity
Metadata
Metadata
Assignees
Labels
difficulty: mediumMedium difficulty problem.Medium difficulty problem.hacktoberfestHacktoberfest issue.Hacktoberfest issue.problemLeetCode problem.LeetCode problem.
Difficulty
Medium
Problem Description
Given an array of integers
citationswherecitations[i]is the number of citations a researcher received for theirithpaper, return the researcher's h-index.According to the definition of h-index on Wikipedia: The h-index is defined as the maximum value of
hsuch that the given researcher has published at leasthpapers that have each been cited at leasthtimes.Example 1:
Example 2:
Constraints:
n == citations.length1 <= n <= 50000 <= citations[i] <= 1000Link
https://leetcode.com/problems/h-index/