Re: [algogeeks] how can i find size of an object in java

2009-11-25 Thread Phani Kumar
glegroups.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

[algogeeks] Re: A bi-direction hashtable

2008-03-26 Thread phani bandaru
Given value you can easily find the key using hash function it self.- Find2(v) If we just have one hash table, that is enough to do the first two operations. Insert & Find1 On 3/27/08, Sticker <[EMAIL PROTECTED]> wrote: > > > I was interviewed a question about implementing a bi-direction > has

[algogeeks] Re: a non-recursive algorithm that prints all the nodes of a binary tree in O(n)

2008-02-11 Thread phani bandaru
Use inorder traversal without recursion. On 2/11/08, James Fang <[EMAIL PROTECTED]> wrote: > > > Use a queue, assume the root of the binary tree : pRoot; > Below is the pseudo code: > > enQueue(pRoot); > While( queue not empty ) > { >pNode = outQueue(); >print(pNode); >if(pNode->left)

[algogeeks] Re: c++ STL ,need help

2007-09-12 Thread Phani Kumar Ch. V.
You can search in internet itself for STL books and online material. There you will find many examples. Regards Phani On 9/13/07, Abhishek <[EMAIL PROTECTED]> wrote: > > Can you plz elaborate your question. > > > > On 9/12/07, mirchi <[EMAIL PROTECTED]> wrote: >

[algogeeks] Re: Post order traversal of a binary tree without recursion

2007-09-08 Thread Phani Kumar Ch. V.
2 4 5 3 6 7 So, think if your solution works for the post order. Regards Phani On 9/9/07, chandra kumar <[EMAIL PROTECTED]> wrote: > > HI, > I think the following solution will solve the problem. It's not as > elegant as the previous one but a straight forward

[algogeeks] Post order traversal of a binary tree without recursion

2007-08-24 Thread Phani Kumar Ch. V.
{ push(s->right); } if(s->left) { push(s->left); } } } } --- Regards Phani --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send e

[algogeeks] Post order traversal of a binary tree without recursion

2007-08-24 Thread Phani Kumar Ch. V.
} if(s->left) { push(s->left); } } } } --- Regards Phani --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send emai

[algogeeks] Re: hi..plz solve this..

2006-08-01 Thread phani
Whats the solution which you got in O(n log n)? --~--~-~--~~~---~--~~ 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