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
- Discussions
Climbing the Leaderboard
Climbing the Leaderboard
Sort by
recency
|
84 Discussions
|
Please Login in order to post a comment
Java solution:
PYTHON 3 HELP please
my code is runni ng but it still shows time exceeded for 4 test cases. Can someone help me understand?
def climbingLeaderboard(ranked, player): new=[] for i in player: ranked.append(i) ranked = sorted(list(set(ranked)), reverse=True) new.append(int(ranked.index(i))+1) return new