So many ways to do it. Used If function

  • 0

    Since no one has posted this one.

    select if(count(*) =1, num, null) as num from number 
    group by num order by count(*), num desc limit 1

Log in to reply

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