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.
It took me a bit of time to understand why my solution didn't work.
Each hacker can make more than one submission per challenge.
So you have to find the maximum score per challenge_id and then sum up those max scores from all challenges the hacker participated in.
Also, reading carefully helps. You have to exclude sum = 0, not score = 0.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Contest Leaderboard
You are viewing a single comment's thread. Return to all comments →
It took me a bit of time to understand why my solution didn't work. Each hacker can make more than one submission per challenge. So you have to find the maximum score per
challenge_id
and then sum up those max scores from all challenges the hacker participated in. Also, reading carefully helps. You have to excludesum = 0
, notscore = 0
.