• + 0 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