1
Vote

NullReferenceException: BinarySearchTree class, Remove method

description

When the root == elementToRemove && tree's count > 1, then Remove method throws a NullReferenceException
 
[Test]
public void testMethod()
{
BinarySearchTree<int> bst = new BinarySearchTree<int>{0,0};
bst.Remove(0);
}

comments