摘要:
1、题目描述 经典的反转二叉树,就是将二叉树中每个节点的左、右儿子交换。 2、题目分析 3、代码 阅读全文
posted @ 2018-04-01 15:26
山里的小勇子
阅读(173)
评论(0)
推荐(0)
摘要:
1、题目描述 Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. 计算二叉树每一层的节点的数据域的平均值。 2、题目分析 使用广度优先遍 阅读全文
posted @ 2018-04-01 15:10
山里的小勇子
阅读(1123)
评论(0)
推荐(0)
摘要:
1、题目描述 Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). Yo 阅读全文
posted @ 2018-04-01 14:27
山里的小勇子
阅读(419)
评论(0)
推荐(0)

浙公网安备 33010602011771号