Binary Tree
can any one of you provide me with java code to build a binary search tree defing and implementing the functions insert and delete
[137 byte] By [
bahar_1a] at [2007-11-27 1:49:04]

TreeSet <T> binarySearchTree = new TreeSet<T>();
public void insert(T obj)
{
binarySearchTree.add(obj);
}
public void delete(T obj)
{
binarySearchTree.remove(obj);
}
; - )