We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dc2cfb commit d02018cCopy full SHA for d02018c
58. 打家劫舍.md
@@ -6,7 +6,7 @@ class Solution:
6
n = len(nums)
7
if n<3:
8
return max(nums)
9
-
+ #dp[i]表示截止至第i间房子所能偷窃到的最大金额
10
dp = [0]*n
11
dp[0] = nums[0]
12
dp[1] = max(nums[:2])
0 commit comments