摘要: 二叉树 Binary Tree -【两棵树 对比】 问题: 给定 层序遍历的数组 表示二叉树。 100. 判断两棵二叉树是否相同。 Example 1: Input: 1 1 / \ / \ 2 3 2 3 [1,2,3], [1,2,3] Output: true Example 2: Input 阅读全文
posted @ 2020-09-19 15:32 habibah_chang 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 二叉树 Binary Tree -【一棵树 内部求最值or求和】 问题: 给定 层序遍历的数组 表示二叉树。 ⚠️ 注意:leaf节点:既无左孩子,又无右孩子 104:求二叉树的最深层数 Example: Given binary tree [3,9,20,null,null,15,7], 3 / 阅读全文
posted @ 2020-09-19 12:11 habibah_chang 阅读(135) 评论(0) 推荐(0) 编辑