We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a8812 commit 24ba0c6Copy full SHA for 24ba0c6
1 file changed
house-robber/doh6077.py
@@ -16,7 +16,7 @@ def rob(self, nums: List[int]) -> int:
16
return nums[0]
17
if n == 2:
18
return max(nums[0], nums[1])
19
- memo = {0:nums[0], 1: max(nums[0], nums[1])}
+ memo = {0: nums[0], 1: max(nums[0], nums[1])}
20
def helper(i):
21
22
if i in memo:
0 commit comments