Check if Tree is Isomorphic
Write a function to detect if two trees are isomorphic. Two trees are called isomorphic if one of them can be obtained from other by a series of flips, i.e. by swapping left and right children of a number of nodes. Any number of nodes at any level can have their children swapped.
Example1:

These two trees are isomorphic
Swap left child & right child of 1

Swap left & right child of 5

Example 2:

The conditions which needed to be satisfied are:
Pre-requisite:
Two Input binary trees (their roots actually), i.e., root1, root2
C++ implementation
Output
Explanation with example
Let's check the example-1
Nodes are represented by their respective values for better understanding
You can check the second example same way & can find returning FALSE
need an explanation for this answer? contact us directly to get an explanation for this answer