Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 957 Bytes

_3232. Find if Digit Game Can Be Won.md

File metadata and controls

42 lines (29 loc) · 957 Bytes

All prompts are owned by LeetCode. To view the prompt, click the title link above.

Completed during Weekly Contest 408 (q1)

Back to top


First completed : July 28, 2024

Last updated : July 28, 2024


Related Topics : Array, Math

Acceptance Rate : 82.26 %


Solutions

Python

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)