Skip to content

Commit 31566ac

Browse files
committed
Update BinarySearchTree.cs
1 parent dd29350 commit 31566ac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

C#/Algorithms/Searching-Algorithms/BinarySearchTree/BinarySearchTree.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using System;
1+
// C# implementation of a binary search tree
2+
using System;
23

34
namespace DataStructures
45
{
6+
// Will add values to thr tree and organize
57
class BinarySearchTree<T> where T : IComparable<T>
68
{
79
public BinarySearchTree<T> Left;
@@ -43,7 +45,8 @@ public void Add(T newValue)
4345
}
4446
}
4547

46-
public static void TestBST()
48+
// Driver to test
49+
public static void Main()
4750
{
4851
var bst = new BinarySearchTree<int>(69);
4952
bst.Add(42);

0 commit comments

Comments
 (0)