Skip to content

Commit 8621442

Browse files
committed
daily
1 parent 59cda0f commit 8621442

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

my-submissions/e3432.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def countPartitions(self, nums: List[int]) -> int:
3+
return 0 if sum(nums) % 2 else len(nums) - 1

0 commit comments

Comments
 (0)