In-Place JavaScript
\nvar minMaxGame = function(nums) {\n    while (nums.length > 1) {\n        let half = nums.length / 2;\n        for (let i = 0; i < half; i++)\n            num
```\nvar minMaxGame = function(nums) {\n    while (nums.length > 1) {\n        let half = nums.length / 2;\n        for (let i = 0; i < half; i++)\n            nums[i] = i % 2 === 0 ? Math.min(nums[2 * i], nums[2 * i + 1]) : Math.max(nums[2 * i], nums[2 * i + 1]);\n        \n        nums.length = half;\n    }\n    \n    return nums[0];\n};\n```
['JavaScript']