We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
/*Enter your query here.Please append a semicolon ";" at the end of the query and enter your query in a single line to avoid error.*/withrankingas(selecth.hacker_id,h.name,count(c.challenge_id)counterfromhackershjoinchallengesconh.hacker_id=c.hacker_idgroupbyh.hacker_id,h.name),maximumas(selectmax(counter)max_counterfromranking),quantityas(selectcounter,count(counter)count_counterfromrankinggroupbycounter)selectr.*fromrankingrjoinmaximummonr.counter<=m.max_counterjoinquantityqonr.counter=q.counterwhereq.count_counter=1orr.counter=m.max_counterorderbyr.counterdesc,r.hacker_idasc
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Check Subset
You are viewing a single comment's thread. Return to all comments →
maybe not shortest one but I quess clear one