Problem
Ask
Submissions

Problem: H-Index

Medium
30 min
Explore how to calculate the h-index from a list of citation counts by understanding the definition and applying sorting and search methods. This lesson teaches you to identify the highest h where the researcher has published at least h papers cited h times, preparing you to solve similar problems efficiently in coding interviews.

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

  • 1n10001 \leq n \leq 1000

  • 00 \leq citations[i] 1000\leq 1000

Problem
Ask
Submissions

Problem: H-Index

Medium
30 min
Explore how to calculate the h-index from a list of citation counts by understanding the definition and applying sorting and search methods. This lesson teaches you to identify the highest h where the researcher has published at least h papers cited h times, preparing you to solve similar problems efficiently in coding interviews.

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

  • 1n10001 \leq n \leq 1000

  • 00 \leq citations[i] 1000\leq 1000