comefrom: <qiyuangong>198_House_Robber_2.py
code: def rob( nums):
      if nums is None or len(nums) == 0:
          return 0
      if len(nums) == 1:
          return nums[0]
      nums[1] = max(nums[0], nums[1])
      for i in range(2, len(nums)):
          nums[i] = max(nums[i] + nums[i - 2], nums[i - 1])
      return nums[-1]
masked: def sample_funcname ( var_0 ) :
      if var_0 is None or len ( var_0 ) == 0 :
          return 0
      if len ( var_0 ) == 1 :
          return var_0 [ 0 ]
      var_0 [ 1 ] = max ( var_0 [ 0 ] , var_0 [ 1 ] )
      for var_8 in range ( 2 , len ( var_0 ) ) :
          var_0 [ var_8 ] = max ( var_0 [ var_8 ] + var_0 [ var_8 - 2 ] , var_0 [ var_8 - 1 ] )
      return var_0 [ - 1 ]
  