JavaScript Solution
Found this solution helpful? Consider showing support by upvoting this post.\nHave a question? Kindly leave a comment below.\nThank you and happy hacking!\n\nva
Found this solution helpful? Consider showing support by upvoting this post.\nHave a question? Kindly leave a comment below.\nThank you and happy hacking!\n```\nvar minMaxGame = function (nums) {\n    if(nums.length === 1) return nums[0]\n\t\n    let result = [...nums];\n\n    while (result.length !== 2) {\n        let tempResult = []\n        for (let i = 0; i < result.length; i += 4) {\n            tempResult.push(Math.min(result[i], result[i + 1]))\n            tempResult.push(Math.max(result[i + 2], result[i + 3]))\n        }\n        result = tempResult\n    }\n\n    return Math.min(result[0],result[1])\n};\n```
['JavaScript']