Re: [algogeeks] Logical operator question

2011-07-28 Thread kavitha nk
@prem::ya its rite.. //BE COOL// kavi -- 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] Re: sizeof() question.

2011-07-28 Thread kavitha nk
wat does it mean dat sizweof cannot be applied to functions??den wat is foo()?is s a func ly na??explain me i cant get it.. //BE COOL// kavi -- 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] Least Common Ancestor

2011-07-28 Thread kavitha nk
http://geeksforgeeks.org/?p=1029 follow the link fa one more soln.. //BE COOL// kavi -- 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

Re: [algogeeks] Least Common Ancestor

2011-07-28 Thread kavitha nk
oh 5n sry...how to get practiced wit algo???help me //BE COOL// kavi -- 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

Re: [algogeeks] Re: reverse a line.

2011-07-28 Thread kavitha nk
first create a temp char array with size equal to dat of the string length.scan each word(char by char until end is white space is reached)...then start filling the new array from last by subtracting the original string length with each word lengthcrct me if i'm wrong.. //BE COOL// kavi

Re: [algogeeks] Small Doubt

2011-07-27 Thread kavitha nk
whether al these address refer to the physical address or logical address??? On 7/28/11, Vishal Thanki vishaltha...@gmail.com wrote: @ rajeev, vishal@ubuntu:~/progs/c\ 09:25:38 AM $ cat alg.c #includestdio.h int main() { int *p = (int *)0xff; *p = 4; return 0; }

Re: [algogeeks] Re: size of self referential structure

2011-07-26 Thread kavitha nk
the link ll not occupy any m/y here...so its output ll be 14(int -4 bytes,ptr-2 bytes);;if i'm wrong jst crct it... On 7/26/11, Prem Krishna Chettri hprem...@gmail.com wrote: Its Cos that is pointer and all pointers is 4 bytes address.. On Tue, Jul 26, 2011 at 7:11 PM, Puneet Gautam

Re: [algogeeks] Re: size of self referential structure

2011-07-26 Thread kavitha nk
sry memory... On 7/26/11, Akshata Sharma akshatasharm...@gmail.com wrote: @kavitha, what is m/y? On Tue, Jul 26, 2011 at 7:27 PM, kavitha nk kavithan...@gmail.com wrote: the link ll not occupy any m/y here...so its output ll be 14(int -4 bytes,ptr-2 bytes);;if i'm wrong jst crct

Re: [algogeeks] Amazon Question

2011-07-26 Thread kavitha nk
hoe to find the combination and permutation for a given string? On 7/26/11, swetha rahul swetharahu...@gmail.com wrote: 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

Re: [algogeeks]

2011-07-26 Thread kavitha nk
pls explain the questi dint get it.. On 7/26/11, Dipankar Patro dip10c...@gmail.com wrote: Puneet, you missed out the 'sorted' part of array. Your code works fine for randomized array. +1 to Manish's solution. I had the same algo :) On 26 July 2011 00:33, Puneet Gautam

Re: [algogeeks]

2011-07-26 Thread kavitha nk
@saurabh::gets too could be used //BE COOL// kavi -- 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

Re: Re : [algogeeks] Re: size of self referential structure

2011-07-26 Thread kavitha nk
sry frendzma above posts were wrongans is 28 if ptr takes 4 bytes... //BE COOL// kavi -- 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,

Re: [algogeeks] OUTPUT

2011-07-26 Thread kavitha nk
wrong.. On 7/26/11, kavitha nk kavithan...@gmail.com wrote: ans ll nt be 0 0 2 va??? On 7/25/11, Puneet Gautam puneet.nsi...@gmail.com wrote: @aditi: the %2 in each of these printf statements is redundant coz it is 1%2...and % has higher precedence over left or right shifts..thats y output

Re: [algogeeks] Nagarro Coding Round Ques......

2011-07-25 Thread kavitha nk
@sasi:thanks!!! //BE COOL// kavi -- 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. For

Re: [algogeeks] Address of var

2011-07-25 Thread kavitha nk
physical address -- //BE COOL// kavi -- 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] C Output

2011-07-25 Thread kavitha nk
a points to the address of the next array...i.e base address+20.ptr-1 points to the last element of array...so it is 5. -- //BE COOL// kavi -- 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] output please

2011-07-25 Thread kavitha nk
it is printed in %d format nd not as %ch... -- //BE COOL// kavi -- 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

Re: [algogeeks] Non-redundant permutations of the string

2011-07-20 Thread kavitha nk
pls explain...i cant get the idea...:( -- //BE COOL// kavi -- 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

Re: [algogeeks] Output ( File Handling)

2011-07-14 Thread kavitha nk
dis s just becoz u ve declared as unsigned char(i.e.) EOF valu is -1 and the range of ch will be form 0 to 255...so -1 is never reached...dis is error...if i'm wrong correct me... //BE COOL// kavi -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] c code bst mirror prob

2011-07-14 Thread kavitha nk
ya i too think de same... //BE COOL// kavi -- 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

Re: [algogeeks] [brain teaser ] 17march

2011-03-17 Thread kavitha nk
lee -- //BE COOL// kavi -- 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. For more

Re: [algogeeks] nzec

2011-03-17 Thread kavitha nk
oh 5n.. -- //BE COOL// kavi -- 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. For

Re: [algogeeks] A Puzzling Puzzle

2011-03-17 Thread kavitha nk
i cant get..help me out... -- //BE COOL// kavi -- 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

Re: [algogeeks] Re: 10 digit problem

2011-03-17 Thread kavitha nk
50 is the answer.. -- //BE COOL// kavi -- 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

Re: [algogeeks] Re: 16march

2011-03-17 Thread kavitha nk
gr8.. -- //BE COOL// kavi -- 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. For more