码迷,mamicode.com
首页 > 其他好文 > 详细

[CareerCup] 4.6 Find Next Node in a BST 寻找二叉搜索树中下一个节点

时间:2015-08-07 00:10:52      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

 

4.6 Write an algorithm to find the‘next‘node (i.e., in-order successor) of a given node in a binary search tree. You may assume that each node has a link to its parent.

 

[CareerCup] 4.6 Find Next Node in a BST 寻找二叉搜索树中下一个节点

标签:

原文地址:http://www.cnblogs.com/grandyang/p/4709487.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!