[algogeeks] plzzzzzzzzzzz

2011-08-20 Thread jagrati verma
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 emai

Re: [algogeeks] Re: Algorithms For Interviews

2011-08-17 Thread jagrati verma
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 re

[algogeeks] logic???????????

2011-08-12 Thread jagrati verma
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.

Re: [algogeeks] Re: problem regarding output??

2011-08-09 Thread jagrati verma
(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 algog

Re: [algogeeks] pre-post decrement

2011-08-08 Thread jagrati verma
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 G

Re: [algogeeks] pre-post decrement

2011-08-08 Thread jagrati verma
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@googlegroup

Re: [algogeeks] pre-post decrement

2011-08-08 Thread jagrati verma
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 t

Re: [algogeeks] shift left nd right

2011-08-08 Thread jagrati verma
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

Re: [algogeeks] find nth node frm the last

2011-08-08 Thread jagrati verma
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+

[algogeeks] find nth node frm the last

2011-08-08 Thread jagrati verma
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;

[algogeeks] suggest simple code for

2011-08-08 Thread jagrati verma
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. Fo

Re: [algogeeks] o/p

2011-08-08 Thread jagrati verma
#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;

Re: [algogeeks] Re: wht does this error means

2011-08-06 Thread jagrati verma
ee 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

Re: [algogeeks] xplanation plz

2011-08-06 Thread jagrati verma
dress 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: >>&

[algogeeks] wht does this error means

2011-08-06 Thread jagrati verma
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 op

[algogeeks] xplanation plz

2011-08-06 Thread jagrati verma
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...@

Re: [algogeeks] C-Question

2011-08-02 Thread jagrati verma
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 Ge

Re: [algogeeks] Re: reason?????????

2011-08-02 Thread jagrati verma
ndition ++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.

Re: [algogeeks] reason?????????

2011-08-01 Thread jagrati verma
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() >> { >>

[algogeeks] reason?????????

2011-08-01 Thread jagrati verma
#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 "

Re: [algogeeks] Exploring C

2011-07-30 Thread jagrati verma
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, aa

[algogeeks] wht is d logic behind this

2011-07-28 Thread jagrati verma
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

Re: [algogeeks] Logical operator question

2011-07-28 Thread jagrati verma
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@goog