Skip to content

Commit d000ec4

Browse files
authored
Update maximize-score-after-n-operations.py
1 parent 1f321d3 commit d000ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/maximize-score-after-n-operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def bits(mask):
2929
return result
3030

3131
dp = [0]*(2**len(nums))
32-
for mask in xrange(len(dp)):
32+
for mask in xrange(3, len(dp)):
3333
cnt = popcount(mask)
3434
if cnt%2:
3535
continue

0 commit comments

Comments
 (0)