c++ | easy | short
\n\n# Code\n\nclass Solution {\npublic:\n   int minMaxGame(vector<int>& nums) {\n        int n = nums.size(); \n        if(n==1) return nums[0]; \n        vecto
\n\n# Code\n```\nclass Solution {\npublic:\n   int minMaxGame(vector<int>& nums) {\n        int n = nums.size(); \n        if(n==1) return nums[0]; \n        vector<int> newNum(n/2); \n        for(int i=0; i<n/2; i++) { \n            if(i%2==0) newNum[i] = min(nums[2 * i], nums[2 * i + 1]); \n            else newNum[i] = max(nums[2 * i], nums[2 * i + 1]); \n        } \n        int res = minMaxGame(newNum);\n        return res;\n    }\n};\n```
['C++']