Re: [algogeeks] Re: symantec

2011-09-28 Thread swetha rahul
a written test followed by 2-3 interviews.The written test questions belonged to previous years GATE questions. The interviews were easier and the questions ranged from OS, OOP concepts, Java, Databases. On Wed, Sep 28, 2011 at 12:09 AM, swetha rahul swetharahu...@gmail.comwrote

[algogeeks] symantec

2011-09-27 Thread swetha rahul
can anyone tell the recruitment procedure of symantec? what is the package? -- 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] probability question

2011-08-31 Thread swetha rahul
In a railway station, there are two trains going. One in the harbour line and one in the main line, each having a frequency of 10 minutes. The main line service starts at 5 o'clock and the harbour line starts at 5.02A.M. A man goes to the station every day to catch the first train that comes.What

[algogeeks] SAP LABS

2011-08-30 Thread swetha rahul
Hi, What is the interview procedure for SAP LABS..?? What is the written test procedure... Please do reply if you know.. Thanks in advance.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Sum from array

2011-08-07 Thread swetha rahul
Given an array find all the set which form the given sum in O(n) i/p: a[]={1,2,3,5,7,6,8,10} sum=9 o/p should be {1,3,5} {2,7} {3,6},{1,8} -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Paypal interview Questions

2011-08-06 Thread swetha rahul
Hi, Q.No:1 what is wrong here void foo(int x=10,int y) how compiler will treat it?? and what happen here void foo(int x=10,int y=20) Q.No:2 How to remove duplicate elements from an array in just one pass.. Take care of time and space complexity.. -- You received this message because you are

[algogeeks] Longest matching substring

2011-08-06 Thread swetha rahul
Hi, How to find the longest matching substring in 2 arrays.. Say we have 2 strings, str1=abcdefghi and str2=iabcdefgk the answer must be abcdefg -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Paypal

2011-08-06 Thread swetha rahul
Hi, Can anybody say what is the wriiten test pattern of paypal... :-) What kind of questions are asked ?? -- 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

Re: [algogeeks] Re: Paypal

2011-08-06 Thread swetha rahul
Thanks Siva... Is it all MCQ or they ask us to code for a problem..?? On Sat, Aug 6, 2011 at 7:35 PM, siva viknesh sivavikne...@gmail.com wrote: Paypal is a subsidiary of ebay .. so i think mostly java .. SCJP level !! On Aug 6, 6:52 pm, swetha rahul swetharahu...@gmail.com wrote: Hi

[algogeeks] Java Output

2011-08-06 Thread swetha rahul
Hi, class C{ static int f1(int i) { System.out.print(i + ,); return 0; } public static void main (String[] args) { int i = 0; i = i++ + f1(i); System.out.print(i); }} Why does this print 1,0..?? Please explain... -- You received this message because you are subscribed to the Google

[algogeeks] Morgan Stanley

2011-08-03 Thread swetha rahul
Hi, Can anyone say about the interview process of Morgan Stanley..What kind of questions are asked in written test..??Thanks in advance.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] Re: Directi on campus

2011-08-03 Thread swetha rahul
unix was their main interest..may be u can clear the written without knowing unix..but not the interview..the complete recruitment process was based only on unix and networks..nothing else.. On Wed, Aug 3, 2011 at 11:59 PM, abhishek kumar mailatabhishekgu...@gmail.com wrote: @aditi: i didn't

[algogeeks] Directi Ques

2011-07-29 Thread swetha rahul
Hi, given a complete binary tree (either a node is a leaf node or has two children) every leaf node has value 0 or 1. every internal node has value as the AND gate or OR gate. you are given with the tree and a value V. you have to output the minimum number of flips (AND to OR or OR to

[algogeeks] Amazon Question

2011-07-26 Thread swetha rahul
Hi, Print all the substrings of a given string. Is there any solution better than O(n^2). Eg: abc the possible substrings are {a,b,c,ab,bc,abc} -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] C Output

2011-07-26 Thread swetha rahul
suggest you try with other combinations with '\' and print the output. They will definitely show some weird stuffs :) Hope that helps. On 25 July 2011 22:53, swetha rahul swetharahu...@gmail.com wrote: char *s=\12345s\n; printf(\n %d,strlen(s)); The output is 5...?? But how.?? -- You

[algogeeks] C Output

2011-07-25 Thread swetha rahul
Hi, int main() { int a[5]={1,2,3,4,5}; int *ptr=a+1; printf(%d,*(ptr-1)); } It prints 5... Can somebody explain wats happening here..? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] Re: AMAZON DIRECT-I !!!!!!

2011-07-25 Thread swetha rahul
Guys pls dont reveal the placements schedule of AU here... Hope u knw dat v r instructed not to do so.. On Mon, Jul 25, 2011 at 7:47 PM, Mani Bharathi manibharat...@gmail.comwrote: ya :) :) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] C Output

2011-07-25 Thread swetha rahul
whole array On Mon, Jul 25, 2011 at 7:44 PM, swetha rahul swetharahu...@gmail.comwrote: Hi, int main() { int a[5]={1,2,3,4,5}; int *ptr=a+1; printf(%d,*(ptr-1)); } It prints 5... Can somebody explain wats happening here..? -- You received this message because you

Re: [algogeeks] C Output

2011-07-25 Thread swetha rahul
.. On Mon, Jul 25, 2011 at 8:20 PM, swetha rahul swetharahu...@gmail.comwrote: int main() { int a[5]={1,2,3,4,5}; int *ptr=a; printf(%d,*(ptr)); getch(); } Then why this prints 1.. ?? On Mon, Jul 25, 2011 at 7:50 PM, sagar pareek sagarpar...@gmail.comwrote

Re: [algogeeks] Re: AMAZON DIRECT-I !!!!!!

2011-07-25 Thread swetha rahul
any info abt directi written exam questions or pattern? On Mon, Jul 25, 2011 at 11:27 PM, Akash Mukherjee akash...@gmail.comwrote: directi updated On Mon, Jul 25, 2011 at 10:53 PM, shady sinv...@gmail.com wrote: @all Microsoft Questions

[algogeeks] C Output

2011-07-25 Thread swetha rahul
char *s=\12345s\n; printf(\n %d,strlen(s)); The output is 5...?? But how.?? -- 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] C output

2011-07-25 Thread swetha rahul
*void main() *{* int i; char *a=String; char *p=New String; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf((%s, %s),a,p); free(p); free(a); } * * * * * *output is (New String,String)* * * *how does Temp retains String even after New

Re: [algogeeks] Amazon

2011-07-24 Thread swetha rahul
We have also Amazon coming up this week.. Please do post the questions if u have any...!! On Sun, Jul 24, 2011 at 8:19 PM, Agyat jalsa.n.sa...@gmail.com wrote: recently, MS visited our campus ..and i saw that same questions were repeated in ANNA univ. so it will be helpful to post question

[algogeeks] MS

2011-07-19 Thread swetha rahul
Hi, Find the kth smallest element in O(logk) given 2 sorted arrays. Merging the arrays is not allowed. I can do it in O(k).. How to do in O(logk).. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] MS

2011-07-19 Thread swetha rahul
Arrays are not of the same size On Tue, Jul 19, 2011 at 10:41 PM, Rishabh Maurya poofiefoo...@gmail.comwrote: Its solvable using Binary Search , offcourse not in log(k) but in log(sum of size of array). -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] MS question

2011-07-17 Thread swetha rahul
ya got it..thanks... how abt test cases for program to check whether a given string is palindrome or not..? On Sun, Jul 17, 2011 at 8:35 PM, ankit sambyal ankitsamb...@gmail.comwrote: 1. If u entered nothing and just pressed search, it should display nothing. 2. If u just entered a space and

Re: [algogeeks] Re: MS question

2011-07-17 Thread swetha rahul
.If reverse of given string is same as string On Jul 17, 8:18 pm, swetha rahul swetharahu...@gmail.com wrote: ya got it..thanks... how abt test cases for program to check whether a given string is palindrome or not..? On Sun, Jul 17, 2011 at 8:35 PM, ankit sambyal ankitsamb...@gmail.com wrote

Re: [algogeeks] Re: MS question

2011-07-17 Thread swetha rahul
Thanks everyone!! On Sun, Jul 17, 2011 at 10:56 PM, ankit sambyal ankitsamb...@gmail.comwrote: Check for case senstivity also: eg: Madam and madam both are palindromes. Also for clarify with the interviewer whether whitespace and punctuation can be ignored. eg: is the following string a

[algogeeks] MS Ques

2011-07-17 Thread swetha rahul
Hi, Given 2 linked lists L1 and L2 create a linked list that gives the multiplication of the above 2 linked lists. Eg: L1 =1-5 L2 =1-0 Ans must be 1-5-0 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group,

Re: [algogeeks] what would be the output of following code??

2011-07-16 Thread swetha rahul
2 On Sat, Jul 16, 2011 at 2:51 PM, shiv narayan narayan.shiv...@gmail.comwrote: Printf(“%d”,printf(“%d %d”,2,2) printf(“%d %d ”, 2, 2)); -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] Microsoft Qn: Algo to find the border of a binary tree

2011-07-16 Thread swetha rahul
@Reynald Will 75 not be included in the tree that u have given..?? On Sun, Jul 17, 2011 at 12:49 AM, sagar pareek sagarpar...@gmail.comwrote: here is the code void border(node*); void recur(node*); void border(node *ptr) { node* tmp; int stack[20],top=0;

Re: [algogeeks] Microsoft Qn: Algo to find the border of a binary tree

2011-07-16 Thread swetha rahul
be printed ... On Sun, Jul 17, 2011 at 1:02 AM, swetha rahul swetharahu...@gmail.comwrote: @Reynald Will 75 not be included in the tree that u have given..?? On Sun, Jul 17, 2011 at 12:49 AM, sagar pareek sagarpar...@gmail.comwrote: here is the code void

[algogeeks] MS Question

2011-07-15 Thread swetha rahul
Hi, #includestdio.h char *c[]={ENTNG,NST,AMAZI,FIRBE}; char **cp[]={c+3,c+2,c+1,c}; char ***cpp=cp; void main() { printf(%s,**++cpp); printf(%s,*--*++cpp+3); printf(%s,*cpp[-2]+3); printf(%s,cpp[-1][-1]+1); } The answer is AMAZING BEST ... Can somebody explain the last printf alone.?? --

[algogeeks] PeP

2011-07-10 Thread swetha rahul
Hi, Has anyone attended PeP (Particiaptory exam for palcement).Can u give me some guidance..?? -- 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

[algogeeks] Re: PeP

2011-07-10 Thread swetha rahul
Sry it is Participatory exam for placement. On Mon, Jul 11, 2011 at 1:16 AM, swetha rahul swetharahu...@gmail.comwrote: Hi, Has anyone attended PeP (Particiaptory exam for palcement).Can u give me some guidance..?? -- You received this message because you are subscribed

Re: [algogeeks] Re: Puzzle

2011-07-07 Thread swetha rahul
Got it...Thanks.. On Wed, Jul 6, 2011 at 11:31 PM, shiv narayan narayan.shiv...@gmail.comwrote: speed of river=(distance traveled by object in it) / total time it took to travel here hat has traveled a distance of 1 KM and it has taken =5mn+5 min=10 min=10min/60=1/6 hrs; so speed =

[algogeeks] Puzzle

2011-07-07 Thread swetha rahul
At a movie theater, the manager announces that they will give a free ticket to the first person in line whose birthday is the same as someone who has already bought a ticket. You have the option of getting in line at any time. Assuming that you don't know anyone else's birthday, that birthdays are

[algogeeks] Puzzle

2011-07-06 Thread swetha rahul
Hi, A son and father goes for boating in river upstream . After rowing for 1 mile son notices the hat of his fathe falling in the river.After 5 min. he tells his father that his hat has fallen. So they turn round and are able to pick the hat at the point from where they began boating

[algogeeks] MS Ques

2011-07-05 Thread swetha rahul
Hi, Write a function which takes two char * s as inputs, one is a regular expression pattern and the other is a test string and check whether the test string is of the given regular expression pattern. The regular expression pattern can contain all lower-case letter, asterisk and