Skip to content

Commit 92a8812

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

house-robber/doh6077.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ def rob(self, nums: List[int]) -> int:
1212

1313
n = len(nums)
1414

15-
if n ==1:
15+
if n == 1:
1616
return nums[0]
17-
if n ==2:
17+
if n == 2:
1818
return max(nums[0], nums[1])
1919
memo = {0:nums[0], 1: max(nums[0], nums[1])}
2020
def helper(i):

0 commit comments

Comments
 (0)