public static void connectNoQueue(TreeLinkNode root) {
		TreeLinkNode h=root;
		while (h!=null) {
			TreeLinkNode c=h, nh=null, np=null;
			while (c!=null) {
				TreeLinkNode a=null,b=null;
				if (c.left!=null&&c.right!=null) {
					a=c.left;
					b=c.right;
					a.next=b;
				} else if (c.left!=null) {
					a=b=c.left;
				} else if (c.right!=null) {
					a=b=c.right;
				}
				if (a!=null) {
					if (nh==null) {
						nh=a;
					} else {
						np.next=a;
					}
					np=b;
				}
				c=c.next;
			}
			h=nh;
		}
	}