Ruby recursive 88ms
\n# @param {Integer[]} nums\n# @return {Integer}\ndef min_max_game(nums)\n  return nums[0] if nums.size == 1\n  nums = nums.each_slice(2).to_a.map.with_index{|a
```\n# @param {Integer[]} nums\n# @return {Integer}\ndef min_max_game(nums)\n  return nums[0] if nums.size == 1\n  nums = nums.each_slice(2).to_a.map.with_index{|a, i| i.even? ? a.min : a.max}\n  min_max_game(nums)\nend\n```
['Ruby']