comefrom: <qiyuangong>198_House_Robber_1.py
code: def rob( nums):
      ls = len(nums)
      if ls == 0:
          return 0
      dp = [0] * ls
      dp[0] = nums[0]
      for i in range(1, ls):
          if i < 2:
              dp[i] = max(nums[i], dp[i - 1])
          else:
              dp[i] = max(dp[i - 2] + nums[i], dp[i - 1])
      return dp[ls - 1]
masked: def sample_funcname ( var_0 ) :
      var_2 = len ( var_0 )
      if var_2 == 0 :
          return 0
      var_4 = [ 0 ] * var_2
      var_4 [ 0 ] = var_0 [ 0 ]
      for var_7 in range ( 1 , var_2 ) :
          if var_7 < 2 :
              var_4 [ var_7 ] = max ( var_0 [ var_7 ] , var_4 [ var_7 - 1 ] )
          else :
              var_4 [ var_7 ] = max ( var_4 [ var_7 - 2 ] + var_0 [ var_7 ] , var_4 [ var_7 - 1 ] )
      return var_4 [ var_2 - 1 ]
  