my solution


  • 0
    N

    SELECT a.follower, COUNT(DISTINCT b.follower) AS num
    FROM follow a,follow b
    WHERE a.follower=b.followee
    GROUP BY a.follower
    ORDER BY a.follower


Log in to reply
 

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