Simple using 2D array C# solution beats 100 runtime & 100 memory
IntuitionFollowing the rules of the game and update score board.
ApproachCreating an 2D representing the score board.Complexity

Time complexity:
number of play
# Intuition
Following the rules of the game and update score board.
![image.png](https://assets.leetcode.com/users/images/ef76ddf2-25f4-45a5-9855-0cad1dda0a22_1738282679.8165312.png)



# Approach
Creating an 2D representing the score board.

# Complexity
- Time complexity:
number of players (n) * number of balls (m) => O(mxn)

- Space complexity:
number of players (n) * number of balls (m) => O(mxn)

# Code
```csharp []
public class Solution {
    public int WinningPlayerCount(int n, int[][] pick) 
    {
        int winners = 0;
        int[][] score = new int[n][];

        for(int i = 0; i < n; i++)
        {
            score[i] = new int[11];
        }

        foreach(var p in pick)
        {
            score[p[0]][p[1]]++;
        }

        for(int i = 0; i < n; i++)
        {
            for(int j = 0; j <= 10; j++)
            {
                if(score[i][j] > i)
                {
                    winners++;
                    break;
                }
            }
        }   
        return  winners;
    }
}
```
['C#']