liuyingbin19222 / leetcode_training

leetcode
0 stars 0 forks source link

打家劫舍- 间隔差的最大值 #8

Open liuyingbin19222 opened 4 years ago

liuyingbin19222 commented 4 years ago

输入: [1,2,3,1] 输出: 4 解释: 偷窃 1 号房屋 (金额 = 1) ,然后偷窃 3 号房屋 (金额 = 3)。   偷窃到的最高金额 = 1 + 3 = 4 。