My simplest solution


  • 0
    S

    select t.id as id, count(t.id) as num from
    (select r1.requester_id as id from request_accepted r1 union all select r2.accepter_id as id from request_accepted r2) t
    group by t.id order by count(t.id) desc limit 1


Log in to reply
 

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