Skip to content

Commit

Permalink
Update BinarySearchTree.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamudraThio committed Oct 29, 2020
1 parent dd29350 commit 31566ac
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
// C# implementation of a binary search tree
using System;

namespace DataStructures
{
// Will add values to thr tree and organize
class BinarySearchTree<T> where T : IComparable<T>
{
public BinarySearchTree<T> Left;
Expand Down Expand Up @@ -43,7 +45,8 @@ public void Add(T newValue)
}
}

public static void TestBST()
// Driver to test
public static void Main()
{
var bst = new BinarySearchTree<int>(69);
bst.Add(42);
Expand Down

0 comments on commit 31566ac

Please sign in to comment.