Changes BST to Binary Tree
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user