Python Easy Solution
Code\n\nclass Solution:\n    def next(self, nums: List[int]) -> int:\n        i=0\n        cnt=0\n        res=[]\n        while(i<len(nums)):\n            if cn
# Code\n```\nclass Solution:\n    def next(self, nums: List[int]) -> int:\n        i=0\n        cnt=0\n        res=[]\n        while(i<len(nums)):\n            if cnt%2==0:\n                res.append(min(nums[i],nums[i+1]))\n            else:\n                res.append(max(nums[i],nums[i+1]))\n            cnt+=1\n            i+=2\n        return res\n\n    def minMaxGame(self, nums: List[int]) -> int:\n        while(len(nums)>1):\n            nums=Solution.next(self,nums)\n        return nums[0]\n```
['Python3']