I will make it easy for you! here it is 👇
\n\n# Code\n\nclass Solution {\npublic:\n    int minMaxGame(vector<int>& nums) {\n\n      while(nums.size()!=1){\n         vector<int>currvect;\n         bool f
\n\n# Code\n```\nclass Solution {\npublic:\n    int minMaxGame(vector<int>& nums) {\n\n      while(nums.size()!=1){\n         vector<int>currvect;\n         bool flag = true;\n         for(int i=0;i<nums.size()-1;i++){\n           if(flag){\n              currvect.push_back(min(nums[i],nums[i+1]));\n               flag = false;\n           }\n           else{\n               currvect.push_back(max(nums[i],nums[i+1]));\n               flag = true;\n           }\n           i++;\n         }\n         nums = currvect;\n      }\n     return nums[0];\n    }\n};\n```
['C++']