摘要: //111. 二叉树的最小深度 public int minDepth(TreeNode root) { //递归实现,效率不高8ms /if (root == null) return 0; if (root.left == null && root.right == null) return 1 阅读全文
posted @ 2025-01-28 19:59 123木头人-10086 阅读(48) 评论(0) 推荐(0)