My Accepted Answer


  • 1
    C

    select case when (select count(distinct sender_id, send_to_id) from friend_request)=0 then 0.00
    else round(count(distinct requester_id, accepter_id)/(select count(distinct sender_id, send_to_id) from friend_request), 2) end as accept_rate
    from request_accepted


Log in to reply
 

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