[algogeeks]

2012-07-02 Thread Pradip Singh
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 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] SPOJ problem :STAMPS

2012-06-22 Thread Pradip Singh
@MAYANK your output format is wrong.use printf(\nScenario #%d:\n,(i+1)); and if(sum sta) On Thu, Jun 21, 2012 at 12:34 PM, Mayank Singh singh13490may...@gmail.comwrote: here is my code /*#includestdio.h #includeconio.h int main() { int cand,sum; int T,N,i,j,temp[10];

Re: [algogeeks] SPOJ problem :STAMPS

2012-06-22 Thread Pradip Singh
PM, Pradip Singh qnit...@gmail.com wrote: @MAYANK your output format is wrong.use printf(\nScenario #%d:\n,(i+1)); and if(sum sta) On Thu, Jun 21, 2012 at 12:34 PM, Mayank Singh singh13490may...@gmail.com wrote: here is my code /*#includestdio.h #includeconio.h int main() { int

Re: [algogeeks] c prog problem

2012-06-14 Thread Pradip Singh
102 102 -90 64 On Thu, Jun 14, 2012 at 10:48 AM, Anika Jain anika.jai...@gmail.com wrote: in this by typecasting address of float a to char * u assign the address of a to ptr. but as ptr is a character pointer when *ptr is printed only 1 byte currently pointed by ptr is pointed. when ptr is

Re: [algogeeks] C OUTPUT

2011-09-22 Thread Pradip Singh
number will be sored in 2'scomplement form .as 4=100 so its 1's comlement form will be 011 and adding 1 to it will result in 011+1=100.so -4 will be printed On Wed, Sep 21, 2011 at 10:23 AM, kartik sachan kartik.sac...@gmail.comwrote: @ravi i think ur concepts is correct the no is stored in

Re: [algogeeks] Find the output

2011-09-16 Thread Pradip Singh
it will print 2,5 On Fri, Sep 16, 2011 at 2:35 AM, Brijesh brijeshupadhyay...@gmail.comwrote: On Friday, 16 September 2011 13:25:38 UTC+5:30, Anup wrote: #includestdio.h int main() { int a[5]={1,2,3,4,5}; int *ptr=(a + 1); int *ptr=(int *)(a + 1); printf(%d

Re: [algogeeks] A logical Question

2011-09-15 Thread Pradip Singh
it will be same bcz the suitcase was already with him. On Thu, Sep 15, 2011 at 1:32 AM, UTKARSH SRIVASTAV usrivastav...@gmail.comwrote: hi it;s a physics question of t bouyant force On Thu, Sep 15, 2011 at 1:53 PM, sagar pareek sagarpar...@gmail.comwrote: it depends that

Re: [algogeeks] Re: spoj--two squares problem

2011-05-29 Thread Pradip Singh
use long long int instead of int for X and all except t.and type cast the sqrt returned value to integer..like int(sqrt(X)) On Sun, May 29, 2011 at 1:55 PM, Vishal Jain jainv...@gmail.com wrote: Hi Saurabh, Can you try it for 10? Could not really understand, what are you gonna communicate?