摘要:
public class BinaryTree { public Node root; public BinaryTree(Node root){ this.root = root; } public void insert(int x){ Node node = new Node(); node.key = x; Node current = root; Node parent = null; while(true){ parent = current; if(node.key < current.key){ //左孩子 current = curren... 阅读全文
posted @ 2013-11-15 00:06
鸟枪变大炮
阅读(270)
评论(0)
推荐(0)
浙公网安备 33010602011771号