Changes BST to Binary Tree

This commit is contained in:
2022-04-14 17:26:06 +01:00
parent 31888a1529
commit a2c7326e4b
3 changed files with 20 additions and 11 deletions

View File

@ -1,5 +1,5 @@
using System;
using C_.Datastructures.BinarySearchTree;
using C_.Datastructures.BinaryTree;
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
@ -99,6 +99,17 @@ Console.WriteLine("Hello, World!");
//queue.Pop();
//queue.Pop();
Tree<int> tree = new Tree<int>();
tree.Add(4);
@ -111,9 +122,7 @@ tree.Add(1);
tree.Add(4);
tree.Add(7);
tree.Find(2);
var x = tree.Find(2);
Console.ReadLine();