@ankit:

I think it wont work in below case :

   9
     \
       18
         \
           27
             \
              36

Inorder traversal : 9-18-27-36 mid element is 18 or 27



On Mon, Aug 29, 2011 at 12:59 PM, ankit gupta <ankit.itc...@gmail.com>wrote:

> store inorder traversal in the array and while reconstructing form a tree
> around mid element using recursion...
>
> --
> 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.
>



-- 
Yours affectionately,
Prashant Thorat
Computer Science and Engg. Dept,
NIT Durgapur.

-- 
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