Binary_Trees_CPlus
Submit solution
C++
Points:
30
Time limit:
5.0s
Memory limit:
98M
Author:
Problem type
Allowed languages
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