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.
Climbing the Leaderboard
Climbing the Leaderboard
Sort by
recency
|
2395 Discussions
|
Please Login in order to post a comment
Getting "timeout" when submitting, your need to improve your code's performance. I resolved my timeout test cases by using a customized binary search to find the ranking for a play score. Cheers!
` def climbingLeaderboard(ranked, player): ranks = list(set(ranked)) ranks.sort(reverse=True)
C# Solved
https://red-horse.tistory.com/135
I guess in Java the ranked input is not always sorted correctly. Tried it multiple ways and always failed. As soon as I sorted "ranked" manually and didnt count on it to be sorted I passed.