二叉排序树
文章平均质量分 67
lyx_19961207
这个作者很懒,什么都没留下…
展开
-
在二叉查找树中插入节点
1.问题描述 给定一棵二叉查找树和一个新的树节点,将节点插入到树中。 你需要保证该树仍然是一棵二叉查找树。 注意事项 You can assume there is no duplicate values in this tree + node. 样例 给出如下一棵二叉查找树,在插入节点6之后这棵二叉查找树可以是这样的: 2原创 2017-05-11 17:19:39 · 277 阅读 · 0 评论 -
Convert BST to Greater Tree
1.问题描述 Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BS原创 2017-05-18 17:05:50 · 114 阅读 · 0 评论