You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
469 B
16 lines
469 B
namespace treeStructure
|
|
{
|
|
static class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
BinaryTree<int> btree = new BinaryTree<int>();
|
|
btree.Root = new BinaryTreeNode<int>(1);
|
|
btree.Root.Left = new BinaryTreeNode<int>(2);
|
|
btree.Root.Right = new BinaryTreeNode<int>(3);
|
|
btree.Root.Left.Left = new BinaryTreeNode<int>(4);
|
|
|
|
btree.PreOrderTraversal(btree.Root);
|
|
}
|
|
}
|
|
} |