Re: [algogeeks] Attention All Members

2011-10-08 Thread shady
well new group is already there so people can post job related questions, book requests there... those who are genuinely interested in learning algorithms will be seen in this group. :D On Sun, Oct 9, 2011 at 10:57 AM, Sanjay Rajpal wrote: > This will reduce the no. of people coming to post on t

Re: [algogeeks] Attention All Members

2011-10-08 Thread Sanjay Rajpal
This will reduce the no. of people coming to post on this group Sanju :) On Sat, Oct 8, 2011 at 2:33 PM, Ankur Garg wrote: > +1 > > > On Sun, Oct 9, 2011 at 2:07 AM, Sunny wrote: > >> Now All of the messages are being Moderated and will be posted on the >> group only if they are found re

Re: [algogeeks] Efficient Algo for Merging 2 Binary Search Trees

2011-10-08 Thread Arunachala Karthik
Recursively store parent and child pointers of the to-be-inserted tree using post-order traversal,and when processing each node during traversal reassign pointers to the other tree using BST insertion. Inorder may not work due to distortion of parent pointers? On Sun, Oct 9, 2011 at 3:38 AM, Vand

Re: [algogeeks] Efficient Algo for Merging 2 Binary Search Trees

2011-10-08 Thread PramodP
Actually, it doesn't have to be inorder. The naive approach is to traverse through the smaller tree (using any traversal in|pre|post|level order) and insert each node into the bigger tree. The order of this would be n2logn1 A better approach is to try and fit as much of the smaller bst into the la

[algogeeks] Deletion in AVL tree

2011-10-08 Thread Ankur Garg
Can anyone suggest a pseudocode handling rotations in an AVL tree for deleting a node I couldnt find one in the internet and was unable to derive a proper logic which cud be transformed into code :( -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" g

Re: [algogeeks] Efficient Algo for Merging 2 Binary Search Trees

2011-10-08 Thread Vandana Bachani
Inorder traversal of one tree insert into another? On Sat, Oct 8, 2011 at 4:33 PM, Ankur Garg wrote: > Hi , > > Can anyone think of any better for doing this other than converting into > List and then converting back again to BST .. > > Regards > > -- > You received this message because you are

Re: [algogeeks] Attention All Members

2011-10-08 Thread Ankur Garg
+1 On Sun, Oct 9, 2011 at 2:07 AM, Sunny wrote: > Now All of the messages are being Moderated and will be posted on the > group only if they are found relevant, any irrelevant post be simply > discarded without any notification till percentage of irrelevant posts > reduces by a significant amoun

[algogeeks] Efficient Algo for Merging 2 Binary Search Trees

2011-10-08 Thread Ankur Garg
Hi , Can anyone think of any better for doing this other than converting into List and then converting back again to BST .. Regards -- 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.

[algogeeks] Attention All Members

2011-10-08 Thread Sunny
Now All of the messages are being Moderated and will be posted on the group only if they are found relevant, any irrelevant post be simply discarded without any notification till percentage of irrelevant posts reduces by a significant amount. if someone is found posting too many irrelevant post, he

[algogeeks] Re: Can Any1 provide a proper implementation of a Hashtable(Seperation Chaining) in C,C++

2011-10-08 Thread KK
#include #include #include #define TR(a,it)for(typeof((a).begin()) it = (a).begin(); it != (a).end(); ++it) using namespace std; void Insert(int key, int m, vector< list > &v); list::iterator Search(int key, int m, vector< list > &v); void Delete(int key, int m, vector< list > &v); int

Re: [algogeeks] Re: MS test cases type Questions

2011-10-08 Thread payal gupta
k... thanx...your info vud be of great help for me in future.. regards, PAYAL GUPTA, CSE 3RD YR NIT_B On Wed, Sep 14, 2011 at 11:38 PM, KK wrote: > U must mention all the boundary cases, very large input cases, -ve nos > and must throw appropriate exception while coding during interviews... >

Re: [algogeeks] c output

2011-10-08 Thread shiva@Algo
This is what you use if you want *scanf()* to eat some data but you don't want to store it anywhere; you don't give *scanf()* an argument for this conversion On Sun, Oct 9, 2011 at 1:32 AM, shiva@Algo wrote: > as expected value 100 goes to a,since %*d is variable field width specifier > so the

Re: [algogeeks] c output

2011-10-08 Thread shiva@Algo
as expected value 100 goes to a,since %*d is variable field width specifier so the input 200 goes for that,and the remaining input 300 goes to b value of c is not change so the output will be: 100 300 3 On Sun, Oct 9, 2011 at 12:22 AM, Raghav Garg wrote: > *explain the o/p...if i/p are 100 200 3

Re: [algogeeks] Database Classes

2011-10-08 Thread Rahul Verma
You are welcome. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/WJz0FGP5wUgJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscri

Re: [algogeeks] Database Classes

2011-10-08 Thread payal gupta
thnxx...4 sharing..:):) regards, PAYAL GUPTA, CSE_3rd yr NIT_B On Sat, Oct 8, 2011 at 7:47 PM, monty 1987 <1986mo...@gmail.com> wrote: > Thanks A lot for sharing!! > > On Sat, Oct 8, 2011 at 2:03 PM, Rahul Verma wrote: > >> Hi friends, >> >> Sorry for this off topic, but I found that it would b

Re: [algogeeks] SUGGESTIOn TO ALGo GEEKS

2011-10-08 Thread shady
that is 200% true... but the thing is that there are more than 8000 people in algogeeks, and only those are active who either love learning new things or those who want to get high paid job in some companies. Once they get jobs they stop posting and become mute to query of others. I suggested peopl

[algogeeks] c output

2011-10-08 Thread Raghav Garg
*explain the o/p...if i/p are 100 200 300 int main() { int a=1,b=2,c=3; scanf("%d %*d %d",&a,&b,&c); printf("%d %d %d",a,b,c); return(0); } *Thanking you *With regards- Raghav garg Contact no. 901320194

Re: [algogeeks] SUGGESTIOn TO ALGo GEEKS

2011-10-08 Thread rahul sharma
no..i dnt knw the procedure..actually i was searching about some companies..i have to post my query on interview-street..but look for archieve in algogeeks..so by my personal experience i thought its gud to have this all info in one group..procedure which i think is that the intersted member of alg

Re: [algogeeks] SUGGESTIOn TO ALGo GEEKS

2011-10-08 Thread shady
ya, how to do it ? how to move all discussions from one group to another if you know the procedure then reply. :D On Sat, Oct 8, 2011 at 10:41 PM, rahul sharma wrote: > I have a suggestion to made...as a new group interview-street is there..but > still a lot more info is available here in alg

[algogeeks] SUGGESTIOn TO ALGo GEEKS

2011-10-08 Thread rahul sharma
I have a suggestion to made...as a new group interview-street is there..but still a lot more info is available here in algogeeks only..so cant the owner of group move all the info about all the companies from algogeeks to interview-street.like pattern n ctc n etc..so that if somebody try to find th

Re: [algogeeks] Re: Basic Algorithm

2011-10-08 Thread shiva@Algo
:) On Sat, Oct 8, 2011 at 6:41 AM, Navneet wrote: > I wonder why my name is there in the example string used :) > > On Oct 8, 3:11 pm, ManishMCS wrote: > > A string of characters are given. Find the highest occurrence of a > > character and display that character. > > > > E.g Input: AEGBCNAVNEE

Re: [algogeeks] Database Classes

2011-10-08 Thread monty 1987
Thanks A lot for sharing!! On Sat, Oct 8, 2011 at 2:03 PM, Rahul Verma wrote: > Hi friends, > > Sorry for this off topic, but I found that it would be interesting for us > that now we have online classes of Databases from Stannford. > db-class.org > > -- > You received this message because yo

[algogeeks] BT Questions

2011-10-08 Thread SAMMM
1) how do u debug the code such tht u can know the compile time error?? 2) how do u judge/know exception going to arise ?? How we decide and when?? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogee

[algogeeks] Re: Basic Algorithm

2011-10-08 Thread Navneet
I wonder why my name is there in the example string used :) On Oct 8, 3:11 pm, ManishMCS wrote: > A string of characters are given. Find the highest occurrence of a > character and display that character. > > E.g Input: AEGBCNAVNEETGUPTAEDAGPE > Output: E. > > Please give the efficient algorithm

Re: [algogeeks]

2011-10-08 Thread SHIVAM AGRAWAL
k got it thnx a lot. On Sat, Oct 8, 2011 at 4:35 PM, shady wrote: > 1. don't use dev c > 2. search archives > 3. after doing 2 you will say it is not there, > therefore solution by sunny - > > char five[7] -> string of length 7 > charlie -> 7 length string > > declare it as char[8] u will ge

Re: [algogeeks]

2011-10-08 Thread shady
1. don't use dev c 2. search archives 3. after doing 2 you will say it is not there, therefore solution by sunny - char five[7] -> string of length 7 charlie -> 7 length string declare it as char[8] u will get expected output On Sat, Oct 8, 2011 at 4:14 PM, SHIVAM AGRAWAL wrote: > when i am ru

[algogeeks]

2011-10-08 Thread SHIVAM AGRAWAL
when i am running this on dev c it is printing times but on running in linux it is not printing times plz any1 xplain me y is it so #include main() { char outline[50]; char one[7],two[7],four[7],five[7]; int three; sprintf(outline,"this is %d tim %s \n",10,"cha

Re: [algogeeks] Basic Algorithm

2011-10-08 Thread Dheeraj Sharma
1.hashing performance o(n) space o(n) keep incrementing the count..by hashing the each character 2.sort the input O(nlogn) check for succesive occurence of the character..the most occured wud b the ans. 3.Assume the array if of int type..Let A be at index 0,B at index 1..and so on. now start f

[algogeeks] Basic Algorithm

2011-10-08 Thread ManishMCS
A string of characters are given. Find the highest occurrence of a character and display that character. E.g Input: AEGBCNAVNEETGUPTAEDAGPE Output: E. Please give the efficient algorithm w.r.t both space and time.. -- You received this message because you are subscribed to the Google Groups "A

[algogeeks] Database Classes

2011-10-08 Thread Rahul Verma
Hi friends, Sorry for this off topic, but I found that it would be interesting for us that now we have online classes of Databases from Stannford.db-class.org -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on th

Re: [algogeeks] citrix question

2011-10-08 Thread praveen raj
Plz put more question that has beem asked in citrix. On 08-Oct-2011 11:33 AM, "raj kumar" wrote: > > * Which of the following restricts a process to the memory allocated to it > * > * > *a. stack pointers > b. memory allocation hardware > c. kernel > d. none of these > > what's the answer of this

Re: [algogeeks] citrix question

2011-10-08 Thread praveen raj
Kernel. On 08-Oct-2011 11:33 AM, "raj kumar" wrote: > > * Which of the following restricts a process to the memory allocated to it > * > * > *a. stack pointers > b. memory allocation hardware > c. kernel > d. none of these > > what's the answer of this question > > -- > You received this message