Created 'Add' function for Binary Search Tree
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using C_.Datastructures.BinarySearchTree;
|
||||
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine("Hello, World!");
|
||||
@ -98,6 +99,19 @@ Console.WriteLine("Hello, World!");
|
||||
//queue.Pop();
|
||||
//queue.Pop();
|
||||
|
||||
Tree<int> tree = new Tree<int>();
|
||||
|
||||
tree.Add(4);
|
||||
tree.Add(5);
|
||||
tree.Add(7);
|
||||
tree.Add(6);
|
||||
tree.Add(2);
|
||||
tree.Add(3);
|
||||
tree.Add(1);
|
||||
tree.Add(4);
|
||||
tree.Add(7);
|
||||
|
||||
|
||||
|
||||
Console.ReadLine();
|
||||
|
||||
|
Reference in New Issue
Block a user