Re: [algogeeks]

2012-07-02 Thread sarthak rai
can we have some more terms???cant identify any pattern in this??? On Mon, Jul 2, 2012 at 8:55 PM, Pradip Singh qnit...@gmail.com wrote: 3 8 12 17 22 28 35 .. find the nth term of the sequence -- pardeep kumar -- You received this message because you are subscribed to the Google

Re: [algogeeks] adobe

2012-06-29 Thread sarthak rai
2 malloc(): int **a=(int **)malloc(sizeof(int *)*nrows); for(i=0;inrows;i++) a[i]=(int *)malloc(sizeof(int)*ncols); using only 1 malloc: int **a=(int **)malloc(sizeof(int *)*nrows+(nrows*ncols)*(sizeof(int))); for(i=0;inrows;i++) { a[i]=(int*)(a+nrows+i*ncols); } On Fri, Jun 29, 2012 at 4:46 PM,