求一棵二叉树中任意节点的后继节点(后继节点是指在中序遍历中紧随其后的节点)...
问题定义:
RT,基本上标题已经说得很清楚了。Write an algorithm to find the 'next' node (eg. in-order successor) of a given node in a binary search tree where each node has a link to its parent.
思路:
...
原创
2017-06-29 10:19:54 ·
553 阅读 ·
0 评论