Tap here to switch tabs
Problem
Submissions

Problem: H-Index II

med
30 min
Try to solve the H-Index II problem.

Statement

Given the sorted integer array citations, return the researcher’s h-index.

The h-index is the largest value h such that the researcher has at least h papers with at least h citations each.

Note: citations is sorted in ascending order.

Constraints:

  • n == citations.length

  • 1≤1 \leq n ≤105\leq 10^5

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

  • citations is sorted in ascending order

⋮
Tap here to switch tabs
Problem
Submissions

Problem: H-Index II

med
30 min
Try to solve the H-Index II problem.

Statement

Given the sorted integer array citations, return the researcher’s h-index.

The h-index is the largest value h such that the researcher has at least h papers with at least h citations each.

Note: citations is sorted in ascending order.

Constraints:

  • n == citations.length

  • 1≤1 \leq n ≤105\leq 10^5

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

  • citations is sorted in ascending order