All prompts are owned by LeetCode. To view the prompt, click the title link above.
Completed during Weekly Contest 408 (q1)
First completed : July 28, 2024
Last updated : July 28, 2024
Acceptance Rate : 82.26 %
class Solution:
def canAliceWin(self, nums: List[int]) -> bool:
single = 0
double = 0
for num in nums :
if num < 10 :
single += num
else :
double += num
return (single != double)