MySQL solution


  • 0
    X
    select max(num) as num from (select num from number group by num having count(*) = 1) p;
    

Log in to reply
 

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