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 ea0550c commit ef38f39Copy full SHA for ef38f39
house-robber/ppxyn1.py
@@ -17,4 +17,5 @@ def rob(self, nums: List[int]) -> int:
17
for i in range(2, length):
18
lst[i] = max(lst[i-1], lst[i-2] + nums[i])
19
20
- return lst[-1]
+ return lst[-1]
21
+
0 commit comments