Open andrealorenzon opened 5 years ago
What must a Tree do?
be created
search a node by key : recursive search:
insert a new node:
delete a node: search by key, and deletion
be destroyed: delete the root node, recursive destruction
iterators and other stuff
constructor:
tree() { root = NULL; }; ~tree();
What must a Tree do?
be created
search a node by key : recursive search:
insert a new node:
delete a node: search by key, and deletion
be destroyed: delete the root node, recursive destruction
iterators and other stuff