Exemple #1
0
        public int TestGetMax(List <int> items, IComparer <int> comparator)
        {
            IterativeBinarySearchTree <int> tree = new IterativeBinarySearchTree <int>(items, comparator);

            return(tree.GetMax(tree.Root).Data);
        }
        public string TestGetMax(List <string> items, IComparer <string> comparator)
        {
            IterativeBinarySearchTree <string> tree = new IterativeBinarySearchTree <string>(items, comparator);

            return(tree.GetMax(tree.Root).Data);
        }