H-index problem

Problem Statement:

Calculate the researcher's h-index from an array of integer citations, where citations[i] is the number of citations a researcher obtained for their ith work.

According to the definition of h-index, a scientist has an index h if h of their n articles have at least h citations each, while the other n h papers have no more than h citations each.

In cases when h has multiple possible values, the highest value is used to determine the h-index.

Pre-requisite: Counting Sort

Example ...
 •  0 comments  •  flag
Share on Twitter
Published on January 11, 2023 07:08
No comments have been added yet.