'''
House Robber
'''
class Solution:
    def rob(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        robnow=0
        notRobnow=0
        for i in range(0,len(nums)):
            courrRob=notRobnow+nums[i]
            notRobnow=max(robnow,notRobnow)
            robnow=courrRob
        return max(notRobnow,robnow)
b0ddbbb476ad89ef5e2a12dd75d73c9854092a9c
<mask token>

<mask token>


class Solution:
    <mask token>

<mask token>


class Solution:

    def rob(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        robnow = 0
        notRobnow = 0
        for i in range(0, len(nums)):
            courrRob = notRobnow + nums[i]
            notRobnow = max(robnow, notRobnow)
            robnow = courrRob
        return max(notRobnow, robnow)

'''
House Robber
'''
class Solution:
    def rob(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        robnow=0
        notRobnow=0
        for i in range(0,len(nums)):
            courrRob=notRobnow+nums[i]
            notRobnow=max(robnow,notRobnow)
            robnow=courrRob
        return max(notRobnow,robnow)