C++ || Easy Video Solution
The video solution for the below code is\n\nhttps://youtu.be/S46q0rWwcK0\n\n# Code\n\nclass Solution {\npublic:\n    int winningPlayerCount(int n, vector<vector
The video solution for the below code is\n\nhttps://youtu.be/S46q0rWwcK0\n\n# Code\n```\nclass Solution {\npublic:\n    int winningPlayerCount(int n, vector<vector<int>>& pick) {\n        ios_base::sync_with_stdio(false);\n        cin.tie(NULL);\n        cout.tie(NULL);\n        // 11 elements 0 - 10 11 balls\n        //     1   2  3  4   5  . . . . . . 11\n        // 1.  1\n        // 2.  1\n        // 3\n        // 4\n        // 5\n        // Matrix -- 2D vector\n        vector<vector<int>> v(n, vector<int>(11, 0));\n        for(auto &ele : pick){\n            v[ele[0]][ele[1]]++;\n        }\n        int ans = 0;\n        for(int i = 0 ; i < n ; i++){\n            for(auto &ele : v[i]) {\n                if(ele > i){\n                    ans++;\n                    break;\n                }\n            }\n        }\n        return ans;\n    }\n};\n```
['C++']