Min Max Game Solution Java
class Solution {\n  public int minMaxGame(int[] nums) {\n    if (nums.length == 1)\n      return nums[0];\n\n    int[] nextNums = new int[nums.length / 2];\n   
class Solution {\n  public int minMaxGame(int[] nums) {\n    if (nums.length == 1)\n      return nums[0];\n\n    int[] nextNums = new int[nums.length / 2];\n    for (int i = 0; i < nextNums.length; ++i)\n      nextNums[i] = (i & 1) == 1 ? Math.max(nums[2 * i], nums[2 * i + 1])\n                                 : Math.min(nums[2 * i], nums[2 * i + 1]);\n    return minMaxGame(nextNums);\n  }\n}\n
['Array', 'Simulation']