[algogeeks] Re: Brain Teaser

2010-11-14 Thread bittu
@amod...gr8 dude..u summarized very well acco. to ur algo.. 2 5 1 6 4 7 3 8 works fine.. Regards Shashank Mani Don't Be Evil U Can Learn While U Earn Computer Science Engg. Birla Institute of Technology,Mesra Cell +91-9718508004 -- You received this message because you are subscribed to

[algogeeks] Re: how would you find the integer pairs which sum to m in o(n) time complexity

2010-11-14 Thread bittu
ya much works is done by above candidate. i would like to say..use 2 ptrs one from beginning another from end take sum=a[start]+a[end]; find if sumnum end-- else if sumnum start++; else //sum==num found; time compexcity O(n) sizeof array space compexcity O(1) Regards Shashank Mani Don't Be

[algogeeks] tree Samsung Question

2010-11-14 Thread bittu
which data structure is best used to implmets the tree Regards Shashank -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to

[algogeeks] Re: how would you find the integer pairs which sum to m in o(n) time complexity

2010-11-14 Thread Ruturaj
On Nov 14, 10:58 pm, bittu shashank7andr...@gmail.com wrote: ya  much works is done by above candidate. i would like to say..use 2 ptrs one from beginning another from end take sum=a[start]+a[end]; find if sumnum end-- else if sumnum start++; else //sum==num found; time compexcity

[algogeeks] Re: tree Samsung Question

2010-11-14 Thread Ruturaj
Since its a data structure, we need to root the tree. Plus my suggestion will only work for directed trees. all children point to their parents. for a node i, if its parent is j a[i]=j a[root] = -1 this can store a tree pretty fast. else normally we can use a linked list etc. On Nov 14, 11:53 

[algogeeks] EXTORADINARY HOT PHOTOS videos

2010-11-14 Thread SRAVANTHI LOVE
UDAYA TARA IN A BATHROOM http://unbelivablephotos.blogspot.com/2010/10/tamil-actress.html HOT ACTRESS IN WITHOUT SAREE http://unbelivablephotos.blogspot.com/2010/10/sexy-scene.html SONAM KAPOOR HOT BOOBS

[algogeeks] Re: servlet object creation

2010-11-14 Thread Amod
@Ayush 1. Container(Tomcat) calls default constructor of your servlet. Even if you have overloaded constructors still only default is called. 2. The container then calls init() method and passes servlet config object into it which contains properties local to a servlet defined in the web.xml. 3.