static void Main(string[] args) { BinaryTree bt = new BinaryTree(50); bt.head.Left = new Node(20); bt.head.Left.Left = new Node(5); bt.head.Left.Right = new Node(25); bt.head.Right = new Node(70); bt.PrintTree(); Console.WriteLine("*************************************"); bt.add(30); bt.add(85); bt.add(17); bt.PrintTree(); Console.WriteLine("*************************************"); Console.WriteLine(bt.GetMax()); Console.WriteLine(bt.GetMax2()); Console.WriteLine(bt.GetMin()); Console.WriteLine(bt.Find(30).Value); Console.WriteLine(bt.Find2(25).Value); Console.WriteLine(bt.Delete(700)); Console.WriteLine(bt.Delete(30)); bt.PrintTree(); Console.WriteLine("NOTICE!!!!! the value : '30' has been deleted !"); Console.WriteLine(bt.Delete(20)); bt.PrintTree(); Console.WriteLine("NOTICE!!!!! the value : '20' CANOT be deleted !"); }