Python Nested DefaultDict Beats 94%
Code\npython3 []\nfrom collections import defaultdict\nclass Solution:\n    def winningPlayerCount(self, n: int, pick: List[List[int]]) -> int:\n        players
# Code\n```python3 []\nfrom collections import defaultdict\nclass Solution:\n    def winningPlayerCount(self, n: int, pick: List[List[int]]) -> int:\n        players = defaultdict(lambda: defaultdict(int))\n        w = 0\n        for p in pick:\n            players[p[0]][p[1]] += 1\n        for player in players.keys():\n            num = max(players[player].values())\n            if num > player:\n                w += 1\n        return w\n```
['Python3']