В научных кругах h-индекс представляет собой метрику c, используемую для расчета влияния работ исследователя. Он рассчитывается следующим образом:
Исследователь имеет индекс h, если по крайней мере h из его N статей имеют h цитат в каждой. Если есть несколько h, удовлетворяющих этой формуле, выбирается максимум.
Input: citations = [0,1,3,5,6]
Output: 3
Explanation: [0,1,3,5,6] means the researcher has 5 papers in total and each of them had
received 0, 1, 3, 5, 6 citations respectively.
Since the researcher has 3 papers with at least 3 citations each and the remaining
two with no more than 3 citations each, her h-index is 3.
0 # there is 1 paper with citation 0
1 # there are 4 papers have citations at least 1
3 # there are 3 papers have citations at least 3
5 # there are 2 papers have citations at least 5
6 # there are 1 paper have citations at least 6