[algogeeks] can somebody kindly explain what would be the output for the following program

2011-10-06 Thread praneethn
*int main() { char *p = ayqm; printf(%c,++*(p++)); return 0; }* -- 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

[algogeeks] implementation of malloc

2011-10-06 Thread praneethn
can somebody provide the link or explain how malloc is implemented internally as googling didn't help me. -- 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

Re: [algogeeks] MS Question - Median of a BST without using extra space and in O(n)

2011-09-28 Thread praneethn
convert bst to doubly linked list inorder and find middle element using slow and fast pointer concept On Tue, Sep 27, 2011 at 2:18 PM, Ankur Garg ankurga...@gmail.com wrote: I was thinking of making the tree balanced with equal no of nodes in left and right subtree Median will be

Re: [algogeeks] Re: google os ques on pipelining

2011-09-27 Thread praneethn
clock period=(slowest stage delay)+(Buffer delay). slowest stage delay is 160 ns and Buffer delay is 5ns. Buffer delay will always be there between two stages . clock period=165ns. In the pipelining the time it takes =(k+n-1) * (clock period) k=number of stages and n=number of

Re: [algogeeks] Re: THANX ALGOGEEKS !!!!!!

2011-09-22 Thread praneethn
congrats dude On Thu, Sep 22, 2011 at 10:51 PM, sukran dhawan sukrandha...@gmail.comwrote: congrats On Thu, Sep 22, 2011 at 10:33 PM, Prakash D cegprak...@gmail.com wrote: congrats brother!! On Thu, Sep 22, 2011 at 6:42 PM, saurabh sah.saurab...@gmail.com wrote: thanx to

Re: [algogeeks] C Trick

2011-08-24 Thread praneethn
*max=(ab)*a+(ba)*b;* On Wed, Aug 24, 2011 at 7:32 PM, vikas singh shyguy1...@gmail.com wrote: On Tue, Aug 23, 2011 at 7:50 PM, *$* gopi.komand...@gmail.com wrote: int a,b; int c=a-b; c=c31; c=c31; // hope you're trying for this. ;) int x =c0x01; a=a-x*c; Thx, --Gopi On Tue,

Re: [algogeeks] [offtopic] Something to share for those preparing for Amazon Campus Interviews!

2011-08-01 Thread praneethn
thanks...:) On Thu, Jul 28, 2011 at 5:54 PM, Rahul Menon menonrahul1...@gmail.comwrote: Hello friends, Recently I appeared for placement interviews for Amazon in my campus.Unfortunately though I couldn't make it, still want to share something for others here preparing for amazon

Re: [algogeeks] Facebook Interview question at NIT Warangal

2011-07-26 Thread praneethn
int main() { buildsubsets(0,0,); } void buildsubsets(int i,int j,String subset) { if(j==k) { coutsubset+ ; return ; } for(;in;++i) buildsubsets(i+1,j+1,subset+arr[i]); } assume that given arr[] is a character array i.e.

Re: [algogeeks] Facebook Interview question at NIT Warangal

2011-07-26 Thread praneethn
check this link: *http://www.stefan-pochmann.info/spots/tutorials/sets_subsets/* On Tue, Jul 26, 2011 at 11:59 AM, sumit sumitispar...@gmail.com wrote: Given an array of size n, print all the possible subset of array of size k. eg:- input: a[]={1,2,3,4}, k = 2 output: 1,2 1,3 1,4 2,3

Re: [algogeeks] interesting article for becoming a good programmer

2011-07-25 Thread praneethn
nice one On Mon, Jul 25, 2011 at 9:53 PM, dilip makwana dilipmakwa...@gmail.comwrote: @Rajeev Excellent link ... -- 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