LeetCodeFind if Digit Game Can Be WonFind if Digit Game Can Be WonEasyArrayMathSolution export function canAliceWin(nums: number[]): boolean { return nums.reduce((acc, num) => (num < 10 ? acc + num : acc - num), 0) !== 0; } Complexity Time: O(N) Space: O(1) LeetCodeFind if Digit Game Can Be Wonhttps://leetcode.com/problems/find-if-digit-game-can-be-won