My accepted solution


  • 0
    X
    SELECT C.Name
    FROM Candidate C, 
        (SELECT count(*) as votes, CandidateId FROM Vote GROUP BY CandidateId ORDER BY votes DESC limit 1) TEMP1
    WHERE C.id = TEMP1.CandidateId;```

Log in to reply
 

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