What exactly the median of a Binary Tree means?

On Mon, Mar 28, 2011 at 4:38 PM, Anurag Bhatia <abhati...@gmail.com> wrote:

> @bittu: Can we modify the tree to store extra info?
>
>
>
> On Mon, Mar 28, 2011 at 4:16 PM, bittu <shashank7andr...@gmail.com> wrote:
> > @all try to understand the question as usual we have to do it in min.
> > time & space complexity ..in mean Time O(n) & space o(1) At-most
> > just tell em after doing in-order traversal where u will store the
> > elements either in array or in set isn'tit  it will take O(n) extra
> > space why not looks fro O(1) SPACE..IF M NOT CORRECT otherwise problem
> > just become finding median in array which O(1) ..correct me if m
> > wrong
> >
> > @Anurag wher u will store inorder of tree
> >
> >
> > Thanks
> > Shashank
> >
> > --
> > 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.
> >
> >
>
> --
> 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.
>
>


-- 
Pratik Kathalkar
CoEP

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