SQL Solution For HackerRank Problem: Top Competitors
Top Competitors is another HackerRank problem from Basic Join Category. Here is the SQL solution in MySQL environment.
Problem Description
Julia just finished conducting a coding contest, and she needs your help assembling the leaderboard! Write a query to print the respective hacker_id and name of hackers who achieved full scores for more than one challenge. Order your output in descending order by the total number of challenges in which the hacker earned a full score. If more than one hacker received full scores in same number of challenges, then sort them by ascending hacker_id.
Sample Output
90411 Joe
To know the details about the problem visit : Top Competitors
Solution
Please check the snippet for the sql implementation. If you have different approach in mind feel free to share in the comment below.
Originally posted at: github.com by @Thomas-George-T
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.