LintCode Insert a Node in a Binary Search Tree 在二叉查找树中插入节点
给定一棵二叉查找树和一个新的树节点,将节点插入到树中。
你需要保证该树仍然是一棵二叉查找树。
Given a binary search tree and a new tree node, insert the node into the tree. You should keep the tree still be a valid binary search tree.样例
给出如下一棵二叉
原创
2015-07-14 17:19:01 ·
1273 阅读 ·
0 评论