Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- BinTree<int> binTree =
- new BinTree<int>(14,
- new BinTree<int>(19,
- new BinTree<int>(23),
- new BinTree<int>(6,
- new BinTree<int>(10),
- new BinTree<int>(21))),
- new BinTree<int>(15,
- new BinTree<int>(3),
- null));
- Console.Write("Inorder: ");
- binTree.PrintInorder();
- Console.Write("Preorder: ");
- binTree.PrintPreorder();
- Console.Write("Postorder: ");
- binTree.PrintPostorder();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement