摘要: 1 class Solution { 2 public int rob(TreeNode root) { 3 int[] rootStatus = dfs(root); //存取两种方案结果 4 return Math.max(rootStatus[0], rootStatus[1]); 5 } 6 阅读全文
posted @ 2020-08-06 22:46 小小码农-安 阅读(158) 评论(0) 推荐(0)