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
|
80 Discussions
|
Please Login in order to post a comment
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
I don't understand why my solution is not passing 2 tests cases, 6 and 7 (for timeout). any suggestions?:
In TS
GO
C++
The problem description appears to have this example: