You are given an integer array nums representing the points available in a series of games. Two players, Player
Initially, Player
The games are played sequentially from index nums.length
If nums[i] is odd, the active player switches to the other player.
If the game is every
The currently active player adds nums[i] points to their score.
Return the final score difference, defined as the score of Player
Constraints:
nums.length
nums[i]
You are given an integer array nums representing the points available in a series of games. Two players, Player
Initially, Player
The games are played sequentially from index nums.length
If nums[i] is odd, the active player switches to the other player.
If the game is every
The currently active player adds nums[i] points to their score.
Return the final score difference, defined as the score of Player
Constraints:
nums.length
nums[i]