isSubtree Problem
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 is true.
boolean isSubTree(Tree<Integer> t1, Tree<Integer> t2) {
if (t2 == null) // Empty tree w...
booleanbit1.hashnode.dev1 min read