Binary Trees question. Checking for similar shape
Posted on 2009-04-12
Hi I'm stuck doing this, not sure how to go about it.
If I have two binary trees, how would I check if the have the same shape? Data in the nodes doesn't matter, just if the tree structures are equal.
Any ideas on how to solve this problem?