Skip to content

Commit 659d8bb

Browse files
authored
Update maximum-and-sum-of-array.py
1 parent a9aaf36 commit 659d8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/maximum-and-sum-of-array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def maximumANDSum(self, nums, numSlots):
109109
:type numSlots: int
110110
:rtype: int
111111
"""
112-
def memoiztion(i, mask): # i is metadata, which could be derived from mask, just for easy implementation
112+
def memoiztion(i, mask): # i is metadata, which could be derived from mask, just for shorter implementation
113113
if lookup[mask] != -1:
114114
return lookup[mask]
115115
x = nums[i] if i < len(nums) else 0

0 commit comments

Comments
 (0)