mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-07 15:45:40 +08:00
Merge pull request #1844 from juguagua/master
update 0213.打家劫舍II: 修改函数 python 代码函数名称错误
This commit is contained in:
@ -131,7 +131,7 @@ class Solution:
|
||||
val2=self.roblist(nums[:-1])#不偷最后一间房
|
||||
return max(val1,val2)
|
||||
|
||||
def robRange(self,nums):
|
||||
def roblist(self,nums):
|
||||
l=len(nums)
|
||||
dp=[0]*l
|
||||
dp[0]=nums[0]
|
||||
|
Reference in New Issue
Block a user