Correct representation of tree in string format is

(root Left sub tree,right sub tree)

and if Left sub tree is NULL then it is  (root,right sub tree) so as
differentiate b/w case
1. when B is left child of A   (A (B))
2. or B is right child of A    (A,(B))

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