InterviewSolution
Saved Bookmarks
| 1. |
What is tree traversal and how we can do it? |
|
Answer» This is a form of graph travelers and refers to a whole process of visiting each node in a tree DATA structure for check and update. The inorder traversals share nodes in nondecreasing order; the preorder traversals are USED to create a copy of the tree and GET prefix expression on of an expression tree, whereas the postorder traversal is required to delete a tree. Note: Our data structures and algorithms interview questions has been created by EXPERTS. It shall help you to answer some of the most asked questions during a job interview. |
|