Skip to content

Commit 05c3bee

Browse files
authored
Update maximum-number-of-ways-to-partition-an-array.py
1 parent 4aaf8bb commit 05c3bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/maximum-number-of-ways-to-partition-an-array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def waysToPartition(self, nums, k):
1111
:type k: int
1212
:rtype: int
1313
"""
14-
right = collections.Counter()
1514
total = sum(nums)
15+
right = collections.Counter()
1616
prefix = 0
1717
for i in xrange(len(nums)-1):
1818
prefix += nums[i]

0 commit comments

Comments
 (0)