Skip to content

Commit 24ba0c6

Browse files
doh6077DaleSeo
andauthored
Apply suggestion from @DaleSeo
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
1 parent 92a8812 commit 24ba0c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

house-robber/doh6077.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def rob(self, nums: List[int]) -> int:
1616
return nums[0]
1717
if n == 2:
1818
return max(nums[0], nums[1])
19-
memo = {0:nums[0], 1: max(nums[0], nums[1])}
19+
memo = {0: nums[0], 1: max(nums[0], nums[1])}
2020
def helper(i):
2121

2222
if i in memo:

0 commit comments

Comments
 (0)