Skip to content

Commit

Permalink
Update maximum-and-sum-of-array.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Feb 13, 2022
1 parent a9aaf36 commit 659d8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/maximum-and-sum-of-array.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def maximumANDSum(self, nums, numSlots):
:type numSlots: int
:rtype: int
"""
def memoiztion(i, mask): # i is metadata, which could be derived from mask, just for easy implementation
def memoiztion(i, mask): # i is metadata, which could be derived from mask, just for shorter implementation
if lookup[mask] != -1:
return lookup[mask]
x = nums[i] if i < len(nums) else 0
Expand Down

0 comments on commit 659d8bb

Please sign in to comment.