solution without join


  • 0
    P

    select followee as follower, count(followee) as num
    from follow
    where followee in(select distinct follower from follow)
    group by 1;


Log in to reply
 

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