Exemple #1
0
        static void Main(string[] args)
        {
            int[] arr  = { 4, 3, 5, 9, 8, 6 };
            Tree  tree = new Tree(7);

            for (int i = 0; i < arr.Length; i++)
            {
                tree.Add(arr[i]);
            }
            Console.WriteLine(tree.GetMin());
            Console.WriteLine(tree.GetMax());
        }