Category Archives: Computers and Internet

Link binary tree nodes at the same level

Given modified binary tree node public class TreeNode<T> {     public TreeNode<T> LeftChild;     public TreeNode<T> RightChild;     public TreeNode<T> Right; }         public static void LinkEachLevel<T>(TreeNode<T> root)        {            LinkedList<TreeNode<T>> rightMost = new LinkedList<TreeNode<T>>();            LinkedListNode<TreeNode<T>> first = new LinkedListNode<TreeNode<T>>(null);            rightMost.AddFirst(first);            … Continue reading

Posted in Computers and Internet | Leave a comment

Hibernate in WIndows Server 2008

User can’t click Hibernate in start menu in Windows Server 2008 as in Vista, enen user has executed "powercfg /hibernate on" to enable hibernate. There is a walk round: Open control panel, find power option, find "Choose what the power button … Continue reading

Posted in Computers and Internet | Leave a comment