C++ code
\nclass Solution {\npublic:\n    int minMaxGame(vector<int>& nums) {\n        while(nums.size() > 1){\n            vector<int> temp;\n            bool m = false
```\nclass Solution {\npublic:\n    int minMaxGame(vector<int>& nums) {\n        while(nums.size() > 1){\n            vector<int> temp;\n            bool m = false;\n            for(int i = 1; i < nums.size(); i += 2){\n                int n;\n                m ? n = max(nums[i], nums[i - 1]) : n = min(nums[i], nums[i - 1]);\n                temp.push_back(n);\n                m = !m;\n            }\n            nums = temp;\n        }\n        return nums[0];\n    }\n};\n```
['C']