Binary_Trees_CPlus


Submit solution

Points: 30
Time limit: 5.0s
Memory limit: 98M

Author:
Problem type
Allowed languages
C++

Implement the following functionalities of a binary trees:

find(int key)

insert(int id, double data)

traverse(int traverseType)

preOrder(Node* pLocalRoot)

inOrder(Node* pLocalRoot)

postOrder(Node* pLocalRoot)

displayTree()

destroy() //deletes all nodes

destroyRec(Node* pLocalRoot) //delete nodes in a subtree


Comments

There are no comments at the moment.