Why [0] should return 0?

  • 2

    [0] means there is 1 paper and the citation is 0.
    According to the description

    A scientist has index h if h of his/her N papers have at least h citations each, and the other N − h papers have no more than h citations each

    A scientist has 1(h) of his/her 1 paper has at least 0(h) citation, and the other 0 paper has no more than 0 citation.

    Is this a contradiction?

Log in to reply

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