can u explain what is meant by binary tree as a mirror strucrure ?

is it like all left and right subtrees in tree should be mirror image
of each other..
if that is the case then (A (B (C)), D(E))) should be (A (B (C)),
D(,E)))
means if C is the left child of B then E should be the right child of
D

On Feb 6, 3:34 pm, jalaj jaiswal <jalaj.jaiswa...@gmail.com> wrote:
> Write a function to check whether the Binary Tree is mirror structure.
>
> True
> (A (B (C,D), E( F,G)))
> or
> (A (B (C)), D(E)))
>
> False
> (A (B))
> or
> (A (B,C(D,E)))
>
> --
> tree is represented in string form as given above
>
> With Regards,
> *Jalaj Jaiswal* (+919019947895)
> Final Year Undergraduate,
> IIIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to