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. hacker_id, name, and the total number*/withresultsas(selecth.hacker_id,h.name,count(distinctc.challenge_id)challenges,rank()over(orderbycount(distinctc.challenge_id)desc)asrank_orderfromhackershleftjoinchallengesconh.hacker_id=c.hacker_idgroupby1,2orderbycount(distinctc.challenge_id)desc,hacker_idasc),repeated_ranksas(selectrank_order,count(*)ascounterfromresultswhererank_order<>1groupby1havingcount(*)>1)selectr.hacker_id,r.name,r.challengesfromresultsrleftjoinrepeated_ranksrronr.rank_order=rr.rank_orderwhere1=1andrr.counterisnull
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Challenges
You are viewing a single comment's thread. Return to all comments →