O78
Scientist H-Index
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]) -> intInput & 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ırExample Execution Walkthrough
atiflar = [0, 1, 3, 5, 6] -> 3 makalenin en az 3 atıfı var (3, 5, 6) -> cevap: 3Example Test Scenarios (3)
Example 1
Input:
[[0,1,3,5,6]]Expected Output:
3Example 2
Input:
[[1,2,100]]Expected Output:
2Example 3: Sıfır Atıf
Input:
[[0]]Expected Output:
0