摘要: 二叉树的题目无脑递归做,关键还是在三板斧——确定参数和返回值、终止条件和单层逻辑体 public TreeNode trimBST(TreeNode root, int low, int high) { if(root == null) return null; if(root.val < low) 阅读全文
posted @ 2022-04-18 11:49 明卿册 阅读(33) 评论(0) 推荐(0) 编辑