力扣刷题——198. 打家劫舍
摘要:
198. 打家劫舍 这也是一道简单的动态规划题目 class Solution { public int rob(int[] nums) { int[] ans = new int[nums.length+1]; ans[0]=0; ans[1]=nums[0]; for(int i = 1; i 阅读全文
posted @ 2023-02-20 13:22 pumpkinsBig 阅读(22) 评论(0) 推荐(0)
浙公网安备 33010602011771号