Tap here to switch tabs
Problem
Submissions

Problem: H-Index

H-Index measures a researcher's impact from a citation array: return the greatest number of papers such that at least that many have received at least that many citations.

Statement

You are given an array of integers citations, where each element citations[i] represents the number of citations received for the ithi^{th} publication of a researcher.

Your task is to find the researcher’s h-index and return the value of hh.

Note: The h-index is defined as the highest number hh such that the given researcher has published at least hh papers, each of which has been cited at least hh times.

Constraints:

  • n==n == citations.length

  • 1≤n≤10001 \leq n \leq 1000

  • 0≤0 \leq citations[i] ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: H-Index

H-Index measures a researcher's impact from a citation array: return the greatest number of papers such that at least that many have received at least that many citations.

Statement

You are given an array of integers citations, where each element citations[i] represents the number of citations received for the ithi^{th} publication of a researcher.

Your task is to find the researcher’s h-index and return the value of hh.

Note: The h-index is defined as the highest number hh such that the given researcher has published at least hh papers, each of which has been cited at least hh times.

Constraints:

  • n==n == citations.length

  • 1≤n≤10001 \leq n \leq 1000

  • 0≤0 \leq citations[i] ≤1000\leq 1000