1
Vote

IndexOutOfRangeException: Heap class, Remove method

description

When the heap contains no elements and item to remove is 0, the Remove() method throws IndexOutOfRangeException
[Test]
public void testMethod()
{
BinarySearchTree<int> bst = new BinarySearchTree<int>{};
bst.Remove(0);
}

comments