Just curious, what kind of case could have multiple possible values of h?

  • 2

    In the problem description, there is a line "Note: If there are several possible values for h, the maximum one is taken as the h-index."
    I cannot come up with an example that could have several possible values for h.
    IMO, there is only one value for h for each example according to the definition of H-Index.
    Please correct me if i'm wrong.

  • 1

    @Tsien I kind of agree with you on that. What do your think of it? @1337c0d3r

    Let's just suppose there are two different H-index a and b (a < b) then

    1. there are b of his/her N papers have at least b citations each, and the other N − b papers have no more than b citations each
    2. then there are at least b of his/her N papers have at least a citations each (since a < b), and the are no chance that there will be other N − a (N-b at most actually) papers have no more than a citations each

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.