Write a function to detect if two trees are isomorphic
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
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