Assignment 4 PDF
Assignment 4 PDF
2. Write a program to construct a binary tree from its level order and in-order traversal.
3. Given a binary tree and inorder traversal, construct a new binary tree with additional pointers
such that the inorder traversal is reflected in the new tree (Hint: Threaded binary tree). Given a
BST, transform it into greater sum tree where each node contains sum of all nodes greater than that
node.
4. Construct a binary tree from its level order and in-order traversal.
5. In a binary search tree, write a function to checks if the sum of all the nodes in left sub tree of the
node is equal or greater or lesser than the sum of all the nodes in right sub tree of the node.