📈 100.0% Senior Developer | JavaScript | JS | 2022
\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar minMaxGame = function(nums) {\n    return helper(nums);\n};\n\nvar helper = function(nums) {\n  
```\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar minMaxGame = function(nums) {\n    return helper(nums);\n};\n\nvar helper = function(nums) {\n    \n    if(nums.length === 1) return nums[0];\n    \n    let arr = new Array();\n    \n    for (let i = 0; i < nums.length; i = i + 2) {\n        if ((i / 2) % 2 === 1) {\n            arr.push(Math.max(nums[i], nums[i+1]))\n        } else {\n            arr.push(Math.min(nums[i], nums[i+1]))\n        }\n    }\n    return helper(arr);\n};\n```
['JavaScript']