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
|
2391 Discussions
|
Please Login in order to post a comment
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.
TypeScript:
O(n+m) python solution
I finally wrote a code faster, better and more destructive than the AI chatbot generated. Have a look. Python. But it is so simple you can transplant it to anything.
def climbingLeaderboard(ranked, player):
vector result; size_t r_ind = 0; int place = 0; result.resize(player.size());