Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-11 Thread Prakash D
could anyone explain the question 4? On Fri, Aug 12, 2011 at 3:23 AM, Prakash D wrote: > for 3 i think only b is the true statement > > > On Fri, Aug 12, 2011 at 3:20 AM, Prakash D wrote: > >> whats the solution for 3? >> >> >> On Tue, Aug 9, 2011 at 6:13 PM, Akash Mukherjee wrote: >> >>> @srin

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-11 Thread Prakash D
for 3 i think only b is the true statement On Fri, Aug 12, 2011 at 3:20 AM, Prakash D wrote: > whats the solution for 3? > > > On Tue, Aug 9, 2011 at 6:13 PM, Akash Mukherjee wrote: > >> @srinivas if any of the characters (i,n,d,a) appear den it is no longer >> readso gujr >> >> >> On Tue, A

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-11 Thread Prakash D
whats the solution for 3? On Tue, Aug 9, 2011 at 6:13 PM, Akash Mukherjee wrote: > @srinivas if any of the characters (i,n,d,a) appear den it is no longer > readso gujr > > > On Tue, Aug 9, 2011 at 6:04 PM, Srinivas Varanasi > wrote: > >> Can any one explain question number 8? >> >> >> On T

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-09 Thread Akash Mukherjee
@srinivas if any of the characters (i,n,d,a) appear den it is no longer readso gujr On Tue, Aug 9, 2011 at 6:04 PM, Srinivas Varanasi wrote: > Can any one explain question number 8? > > > On Tue, Aug 9, 2011 at 12:19 PM, Akash Mukherjee wrote: > >> @prashant >> >> devcpp gives an error cannot

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-09 Thread Srinivas Varanasi
Can any one explain question number 8? On Tue, Aug 9, 2011 at 12:19 PM, Akash Mukherjee wrote: > @prashant > > devcpp gives an error cannot convert `char (*)[5]' to `char*' in > initialization > > ne ideas?? > > On Mon, Aug 8, 2011 at 12:58 PM, Prashant Kulkarni < > prashant.r.k...@gmail.com> wr

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-08 Thread Akash Mukherjee
@prashant devcpp gives an error cannot convert `char (*)[5]' to `char*' in initialization ne ideas?? On Mon, Aug 8, 2011 at 12:58 PM, Prashant Kulkarni < prashant.r.k...@gmail.com> wrote: > @Mohit > > Output Will be: > > 55"some chunk value" > > Reason: When 'p' is assigning, we are ass

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-08 Thread alok kediya
Finding closest parent in a binary tree.?? Is it LCA for two node. or Inoder pred.. thanks On Mon, Aug 8, 2011 at 10:18 PM, pankaj kumar wrote: > 5)program will compile and ans is > > 2 3 5 6 > > -- > You received this message because you are subscribed to the Google Groups > "Algo

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-08 Thread pankaj kumar
5)program will compile and ans is 2 3 5 6 -- 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.

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-08 Thread Debabrata Das
@suresh, me too , did you got any calls from MS regd the test result? On Mon, Aug 8, 2011 at 10:14 AM, siddharam suresh wrote: > y'day i have attended the MS test. Following are the questions. > 1)there are two arrays a={1,2,3} b={4,5,6,7,0,0,0}, b has enough  space > to accommodate the elements

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-08 Thread Prashant Kulkarni
@Mohit Output Will be: 55"some chunk value" Reason: When 'p' is assigning, we are assigning next memory location of 'ch'. similar we are assigning same memory location to 'q' as well but while printing, we are printing the last memory location content of 'ch' (i.e "p-1") and for 'q' we a

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread Mohit Goel
can anyone one explain output of question 1. -- 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...@googlegroup

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread siddharam suresh
Thank you, Siddharam On Mon, Aug 8, 2011 at 10:14 AM, siddharam suresh wrote: > y'day i have attended the MS test. Following are the questions. > 1)there are two arrays a={1,2,3} b={4,5,6,7,0,0,0}, b has enough space > to accommodate the elements of a[] that is trailing 0's in b. o/p should be

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread siddharam suresh
y'day i have attended the MS test. Following are the questions. 1)there are two arrays a={1,2,3} b={4,5,6,7,0,0,0}, b has enough space to accommodate the elements of a[] that is trailing 0's in b. o/p should be sorted array containing both the elements of a[] n b[] in above example b={1,2,3,4,5

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread coder dumca
oh soory On Sun, Aug 7, 2011 at 12:02 PM, Neha Sharan wrote: > @coder: it is not bst. > > > On Mon, Aug 8, 2011 at 12:15 AM, coder dumca wrote: > >> inoeder traversal is given 1 2 3 4 5 6 7 8 9 >> in preorder traversal root come fist , then left and then right. >> see the option >>a.1 6

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread Neha Sharan
@coder: it is not bst. On Mon, Aug 8, 2011 at 12:15 AM, coder dumca wrote: > inoeder traversal is given 1 2 3 4 5 6 7 8 9 > in preorder traversal root come fist , then left and then right. > see the option > a.1 6 3 2 7 8 4 9 > > 1 is root at left there is 6 , sine left child must be sma

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread coder dumca
inoeder traversal is given 1 2 3 4 5 6 7 8 9 in preorder traversal root come fist , then left and then right. see the option a.1 6 3 2 7 8 4 9 1 is root at left there is 6 , sine left child must be smaller than root in this way none of options are satisfying this b.6 7 3 8 1 9 2 7

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread ankit sambyal
@coder : Cud u plz explain the approach for question 9 ?? -- 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...@go

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread coder dumca
in qyes no 9 I think none of options are correct On Sun, Aug 7, 2011 at 8:25 AM, ankit sambyal wrote: > Can anybdy explain the following questions : > (5) Find the output > int arr[2][3]={{1,2,3},{4,5,6}}; > int (*ptr)[3]=&a[0]; > printf("(%d,%d)",(*ptr)[1],(*ptr)[2]); > ptr+=1; > printf("(%d,%

Re: [algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread ankit sambyal
Can anybdy explain the following questions : (5) Find the output int arr[2][3]={{1,2,3},{4,5,6}}; int (*ptr)[3]=&a[0]; printf("(%d,%d)",(*ptr)[1],(*ptr)[2]); ptr+=1; printf("(%d,%d)",(*ptr)[1],(*ptr)[2]); Will this program compile properly or will end in segmentation fault ?? (9) Given a ino

[algogeeks] MICROSOFT INTERVIEW QUESTIONS faced by my frenz nd me

2011-08-07 Thread siva viknesh
MICROSOFT INTERVIEW QUESTIONS 2011 ROUND 1 : Written Test Questions : (1) Give the output of the following program int main { char ch[]={‘1’,’2’,’3’,’4’,’5’}; char *p = (char *)(&ch+1); char *q = &ch+1; printf(“%d %c%c”,sizeo