You are viewing a single comment's thread. Return to all comments →
I came up with this solution in Python3, hope can help anyone too...
def climbingLeaderboard(ranked, player): rank = list(set(ranked)) rank.sort() player.sort() resp = list() x = len(rank)+1 for item in player: resp.append(x - bisect.bisect(rank, item)) return resp
Seems like cookies are disabled on this browser, please enable them to open this website
Climbing the Leaderboard
You are viewing a single comment's thread. Return to all comments →
I came up with this solution in Python3, hope can help anyone too...