1 line Python solution


  • 11

    It's straightforward:

        return sum(i < j for i, j in enumerate(sorted(citations, reverse=True)))

Log in to reply
 

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