You are given an array of positive integers nums.
Alice and Bob play a game where Alice can choose to collect either all single digit numbers or all double digit numbers from nums. Bob receives all the remaining numbers.
Alice wins if the sum of her chosen numbers is strictly greater than the sum of Bob’s numbers.
Return true if Alice can win the game, or false otherwise.
Constraints:
nums.length
nums[i]
You are given an array of positive integers nums.
Alice and Bob play a game where Alice can choose to collect either all single digit numbers or all double digit numbers from nums. Bob receives all the remaining numbers.
Alice wins if the sum of her chosen numbers is strictly greater than the sum of Bob’s numbers.
Return true if Alice can win the game, or false otherwise.
Constraints:
nums.length
nums[i]