Computer Science, asked by sutapanahak6054, 9 months ago

Given two binary trees check if they are structurally identical

Answers

Answered by DreamBoy786
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