Alice and Bob take turns playing a game, with Alice going first. You are given an integer array stones.
On each turn, the active player removes any stone from stones. A player loses immediately if the sum of the values of all removed stones so far is divisible by
Assuming both players play optimally, return true if Alice wins, or false if Bob wins.
Constraints:
stones.length
stones[i]
Alice and Bob take turns playing a game, with Alice going first. You are given an integer array stones.
On each turn, the active player removes any stone from stones. A player loses immediately if the sum of the values of all removed stones so far is divisible by
Assuming both players play optimally, return true if Alice wins, or false if Bob wins.
Constraints:
stones.length
stones[i]