Exemple #1
0
        public virtual void printLevelOrder(BinaryTree.Tree.BinaryTree binaryTree)
        {
            int h = binaryTree.Height(binaryTree.root);
            int i;

            for (i = 1; i <= h; i++)
            {
                binaryTree.PrintGivenLevel(binaryTree.root, i);
            }
        }
Exemple #2
0
 public virtual void printLevelOrderQueue(BinaryTree.Tree.BinaryTree binaryTree)
 {
     binaryTree.PrintGivenLevel(binaryTree.root);
 }