My AC Solution


  • 0
    R
    select distinct A.follower, C.num  from follow 
    A 
    join 
    (select B.followee, count(*) num from (select distinct * from follow) B group by B.followee) C 
    on A.follower = C.followee order by A.follower
    

Log in to reply
 

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