标签:style color col des == tree while turn bsp
public TreeLinkNode GetNext(TreeLinkNode pNode) {//树 my if(null==pNode){ return null; } TreeLinkNode cur = pNode.right; if(cur!=null){ while(cur.left!=null){ cur = cur.left; } return cur; } TreeLinkNode pre = pNode.next; cur = pNode; while(null!=pre){ if(pre.right!=cur){ return pre; } else{ cur = pre; pre = pre.next; } } return null; }
标签:style color col des == tree while turn bsp
原文地址:https://www.cnblogs.com/zhacai/p/10679270.html