[algogeeks] plzzzzzzzzzzz
techendeavour is abt to visiting so plz share some info.. abt written or interview. -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: Algorithms For Interviews
plz who have the pdf of this book plz mail it for algogeeks grp.. On Thu, Aug 18, 2011 at 12:10 AM, SANDEEP CHUGH wrote: > mail to me too > > On Thu, Aug 18, 2011 at 12:04 AM, rajesh yerneni > wrote: >> >> I could not download the file, please mail it to me tooo... >> >> -- >> 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 options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] logic???????????
to implement a binary search in an array which is sorted but roated by some k places which is nt kwn time complexity O(logn) -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: problem regarding output??
(int *) it is derefrencing of any void pointer into integer. -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] pre-post decrement
i m using redhat n it is giving lvalue... On Mon, Aug 8, 2011 at 11:38 PM, raj kumar wrote: > it's running fine on my machine you can check > z=(--i)--; > even this works fine > z=(--i)++; > > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] pre-post decrement
it'll also give lvalue.. On Mon, Aug 8, 2011 at 11:31 PM, raj kumar wrote: > @jagrati > so why it works fine > z=(--i)--; > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] pre-post decrement
as i think -- op has right to left assocoativity so --(i--) so i-- will take palce 1st so aftr ; it'll b 9 so no dectement op for const thats y it is giving lvalue error -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] shift left nd right
coz u r trying to print float of any integer value so by the memory representation of float it'll giv 0.0 On Mon, Aug 8, 2011 at 10:30 PM, Shashank Jain wrote: > oh yeah, thx karthik. > Shashank Jain > IIIrd year > Computer Engineering > Delhi College of Engineering > > > On Mon, Aug 8, 2011 at 10:29 PM, Shashank Jain wrote: >> >> int b; >> b=2<<2; >> printf("%f", b); >> output: 0.00 >> plz tell y is dat so? >> Shashank Jain >> IIIrd year >> Computer Engineering >> Delhi College of Engineering >> >> >> On Mon, Aug 8, 2011 at 10:24 PM, Gaurav Menghani >> wrote: >>> >>> http://lmgtfy.com/?q=Bitwise+left+and+right+shift+operators >>> >>> On Mon, Aug 8, 2011 at 10:20 PM, Shashank Jain >>> wrote: >>> > thx dipankar, its a gud 1! >>> > Bt tell me wat does '<' and '>' operators do? >>> > eg: 20>2 = 1 >>> > can u explain nd wat is this operator called? >>> > Shashank Jain >>> > IIIrd year >>> > Computer Engineering >>> > Delhi College of Engineering >>> > >>> > >>> > On Mon, Aug 8, 2011 at 12:54 AM, Dipankar Patro >>> > wrote: >>> >> >>> >> This link I think is a good one: >>> >> http://msdn.microsoft.com/en-us/library/336xbhcz.aspx >>> >> >>> >> On 8 August 2011 00:37, Shashank Jain wrote: >>> >>> >>> >>> plz sum1 explain me shift left nd shift right operators? >>> >>> Shashank Jain >>> >>> IIIrd year >>> >>> Computer Engineering >>> >>> Delhi College of Engineering >>> >>> >>> >>> -- >>> >>> 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 options, visit this group at >>> >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >>> >> >>> >> >>> >> -- >>> >> >>> >> >>> >> ___ >>> >> >>> >> Please do not print this e-mail until urgent requirement. Go Green!! >>> >> Save Papers <=> Save Trees >>> >> >>> >> -- >>> >> 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 options, visit this group at >>> >> http://groups.google.com/group/algogeeks?hl=en. >>> > >>> > -- >>> > 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 options, visit this group at >>> > http://groups.google.com/group/algogeeks?hl=en. >>> > >>> >>> >>> >>> -- >>> Gaurav Menghani >>> >>> -- >>> 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 options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] find nth node frm the last
thanku. yes i got it... Seriously nice xplanatin... -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] find nth node frm the last
hw is it possible frm this code ???/ Node * findNToLastNode( Node *head, int N ) { int i = 0; Node *current, *behind; current = head; for( i = 0; i < N; i++ ) { if( current->next ) { current = current->next; } else { return NULL; // Length of the list is less than N } } behind = head; while( current->next ) { current = current->next; behind = behind->next; } return behind; } -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] suggest simple code for
finding the depth or height of a tree. -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] o/p
#define max(a,b)((a>b)?a:b) use parenthese thn it will giv the correct o/p On Mon, Aug 8, 2011 at 3:27 PM, Kamakshii Aggarwal wrote: > #include > > #define max(a,b)(a>b)?a:b > int main() > { > int m,n; > m=3+max(2,3); > n=2*max(3,2); > printf("%d,%d",m,n); > getchar(); > return 0; > } > y the o/p is 2,3,,please explain > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: wht does this error means
i got it. On Sun, Aug 7, 2011 at 1:04 AM, TheMitraBoy wrote: > It usually happens when you copy some code from a website. Its not > visible in editors like Notepad++ and all. Open your code in an editor > like 'vi' ( 'vim' in Windows) . There you can see the stray > characters and delete it. > > On Aug 6, 10:57 pm, jagrati verma wrote: >> error: stray ‘\342’ in program > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] xplanation plz
thanku all. On Sun, Aug 7, 2011 at 12:58 AM, Debabrata Das wrote: > try this: > const int a=54; > int *p=(int *)&a; > *p=100; > printf("%d\n",*p); > printf("%x %x",p,&a); > > > > On Sun, Aug 7, 2011 at 12:28 AM, UTKARSH SRIVASTAV > wrote: >> yes saurabh the value of a has not changed >> >> On Sat, Aug 6, 2011 at 11:20 AM, aditi garg >> wrote: >>> >>> @saurabh >>> http://ideone.com/J0gNi >>> its jst pointing to same address bt it has not modified the value...chk >>> the abv link... >>> On Sat, Aug 6, 2011 at 8:13 PM, saurabh singh wrote: >>>> >>>> http://ideone.com/Wszkg >>>> On Sat, Aug 6, 2011 at 8:03 PM, jagrati verma >>>> wrote: >>>>> >>>>> how can modify constant variable with the help of pointers. >>>>> >>>>> -- >>>>> 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 options, visit this group at >>>>> http://groups.google.com/group/algogeeks?hl=en. >>>>> >>>> >>>> >>>> >>>> -- >>>> Saurabh Singh >>>> B.Tech (Computer Science) >>>> MNNIT ALLAHABAD >>>> >>>> >>>> -- >>>> 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 options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>> >>> >>> >>> -- >>> Aditi Garg >>> Undergraduate Student >>> Electronics & Communication Divison >>> NETAJI SUBHAS INSTITUTE OF TECHNOLOGY >>> Sector 3, Dwarka >>> New Delhi >>> >>> -- >>> 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 options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >> >> >> >> -- >> UTKARSH SRIVASTAV >> CSE-3 >> B-Tech 3rd Year >> @MNNIT ALLAHABAD >> >> -- >> 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 options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] wht does this error means
error: stray ‘\342’ in program -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] xplanation plz
how can modify constant variable with the help of pointers. -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] C-Question
coz we do in for loop 1st initialization thn condition thn increment so in 1st for loop it will print the value thn increment the i's value so itll behave like a i++ dats y no diffrence in the o/p :):) -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: reason?????????
thanks it really helpd me a lot. On Tue, Aug 2, 2011 at 3:16 AM, Dharmendra Modi < dharmendra.modi...@gmail.com> wrote: > The first part initialization of for loop (i<=5 && i>=-1) is just an > initialization and nothing else. It is of no use in this case. > > The second part condition holds the condition which is in this case + > +i specifying to run loop till i is non zero. You are using prefix > operator hence it will first increment i and then test. > If you have used i++ the loop wont even have executed single time. > > The condition ++i becomes zero when there is round of short and you > get zero at that time the loop terminates. > > The format specifier for unsigned int is used hence positive values > are printed. > If the format specifier for %d is used then the results would be more > informative. > > Hope that helps. > > On Aug 1, 11:51 pm, jagrati verma wrote: > > #include > > main() > > { > > short int i=0; > > for(i<=5 && i>=-1;++i;i>0) > > printf("%u\n",i); > > printf("\n"); > > return 0;} > > > >o/p is 1. > > 4294967295 hw??? > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] reason?????????
it is nt an infinite loop it ends at 4294967295 On Tue, Aug 2, 2011 at 12:53 AM, vijay goswami wrote: > its an infinite loop > > On Tue, Aug 2, 2011 at 12:21 AM, jagrati verma < > jagrativermamn...@gmail.com> wrote: > >> #include >> main() >> { >> short int i=0; >> for(i<=5 && i>=-1;++i;i>0) >> printf("%u\n",i); >> printf("\n"); >> return 0; >> } >>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 options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] reason?????????
#include main() { short int i=0; for(i<=5 && i>=-1;++i;i>0) printf("%u\n",i); printf("\n"); return 0; } o/p is 1. 4294967295 hw??? -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Exploring C
no ebook for exploring c yashwant kanetkar On Sat, Jul 30, 2011 at 8:36 PM, aanchal goyal wrote: > I have that. I want exploring C. > > > On Sat, Jul 30, 2011 at 8:27 PM, rahul wrote: > >> If u really want to explore the C, read "Deep C Secrets" >> >> On Sat, Jul 30, 2011 at 8:25 PM, aanchal goyal >> wrote: >> >>> hi, >>> someone please send me ebook exploring C by yashwant kanetkar asap.. >>> Thanks >>> >>> -- >>> Regards,* >>> Aanchal Goyal*. >>> >>> -- >>> 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 options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> 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 options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards,* > Aanchal Goyal*. > > -- > 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 options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] wht is d logic behind this
an array containing +ve and -ve integers.find sub array with the largest sum -- 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 options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Logical operator question
vijay x=y=z=-1 so for ++x&&++y||++z ++x=0 so 1st condition will get false so no increment on y's value(=-1) so ++x&&++y=0 and ++z=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 email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.