From 31566acb72050d118dabb4c1ba3a9a35e5f09c2c Mon Sep 17 00:00:00 2001 From: SamudraThio <68200757+SamudraThio@users.noreply.github.com> Date: Wed, 28 Oct 2020 20:28:29 -0500 Subject: [PATCH] Update BinarySearchTree.cs --- .../BinarySearchTree/BinarySearchTree.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/C#/Algorithms/Searching-Algorithms/BinarySearchTree/BinarySearchTree.cs b/C#/Algorithms/Searching-Algorithms/BinarySearchTree/BinarySearchTree.cs index ffd3d431..57888786 100644 --- a/C#/Algorithms/Searching-Algorithms/BinarySearchTree/BinarySearchTree.cs +++ b/C#/Algorithms/Searching-Algorithms/BinarySearchTree/BinarySearchTree.cs @@ -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 where T : IComparable { public BinarySearchTree Left; @@ -43,7 +45,8 @@ public void Add(T newValue) } } - public static void TestBST() + // Driver to test + public static void Main() { var bst = new BinarySearchTree(69); bst.Add(42);