#treetraversals
Read more stories on Hashnode
Articles with this tag
Problem Statement: Given the inorder and preorder traversals of a binary tree t, but not t itself, restore t and return it. We can start by taking...
Problem Statement: Given two binary trees t1 and t2, determine whether the second tree is a subtree of the first tree. Output for the above example...
Problem Statement Note: Your solution should have only one BST traversal and O(1) extra space complexity, since this is what you will be asked to...