Given two binary trees check if they are structurally identical
Answers
Answered by
0
Answer:
Explanation:
Given the root nodes of the two binary search trees. The task is to print 1 if the two Binary Search Trees are identical else print 0. Two trees are identical if they are identical structurally and nodes have the same values. In the above images, both Tree1 and Tree2 are identical.
Similar questions
Math,
6 months ago
Chemistry,
6 months ago
Computer Science,
1 year ago
Science,
1 year ago
Math,
1 year ago