O78

Scientist H-Index

Mid / Senior Engineer
Target Time: 25 - 35 Minutes
Type: NUMERIC

Problem Statement & Objective

Given an array of citations for a researcher, calculate the researcher's h-index.

Function Signature (Python)

h_index(citations: list[int]) -> int

Input & Output Contract

Output Rule:H-Endeksi tam sayısı.

System Constraints

1 <= atiflar.length <= 10^5
0 <= atiflar[i] <= 1000
atiflar artan sırada sıralıdır

Example Execution Walkthrough

atiflar = [0, 1, 3, 5, 6] -> 3 makalenin en az 3 atıfı var (3, 5, 6) -> cevap: 3

Example Test Scenarios (3)

Example 1
Input:[[0,1,3,5,6]]
Expected Output:3
Example 2
Input:[[1,2,100]]
Expected Output:2
Example 3: Sıfır Atıf
Input:[[0]]
Expected Output:0
Loading Python Editor...
Input Parameters
[
  [
    0,
    1,
    3,
    5,
    6
  ]
]
Expected Output
3