Skip to content

Commit bec0123

Browse files
committed
2020-03-31
1 parent 882032a commit bec0123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1013.将数组分成和相等的三个部分/1013-将数组分成和相等的三个部分.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ def canThreePartsEqualSum(self, A):
44
:type A: List[int]
55
:rtype: bool
66
"""
7+
# from collections import defaultdict
78
target = sum(A) // 3
89
snow = 0
910
cnt = 0
@@ -12,4 +13,4 @@ def canThreePartsEqualSum(self, A):
1213
if target == snow:
1314
snow = 0
1415
cnt += 1
15-
return cnt >= 3
16+
return cnt >= 3

0 commit comments

Comments
 (0)