Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            BinaryTree tree = new BinaryTree();

           tree.Init(new int[] { 20, 10, 546, 7, 17, 54, 1434, 3, 9, 17, 29, 2, 29, 1 });
              //  tree.Init(new int[] { 5, 3, 6 ,4});

            int x = 0;
            int y = 1000;

            int height = 0;
            DrawTree(tree.head, x, y,height);



        }