Sample python solution


  • 0
    J
    c = sorted(citations, reverse=True)
    ans = 0
    for i in range(len(c)):
        if i+1 <= c[i]:
            ans+=1
    return ans
    

Log in to reply
 

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