Testcase 2 is not passing. What is the mistake?
Structurally Identical trees
For structurally identical condition, you just need to check if they have the same structure and not compare the corresponding values in each node.
Testcase 2 is not passing. What is the mistake?
For structurally identical condition, you just need to check if they have the same structure and not compare the corresponding values in each node.