[algogeeks] contest about to begin http://www.spoj.pl/ARHN/ in 5 minutes

2012-02-08 Thread Shalini Sah
http://www.spoj.pl/ARHN/ 10,000 at stake -- 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.

[algogeeks] Re: contest about to begin http://www.spoj.pl/ARHN/ in 5 minutes

2012-02-08 Thread Shalini Sah
On Wed, Feb 8, 2012 at 8:53 PM, Shalini Sah mischievous@gmail.comwrote: http://www.spoj.pl/ARHN/ 10,000 at stake -- 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

[algogeeks] AAROHAN 2012

2012-02-04 Thread Shalini Sah
Hi, I invite you to participate in the online programming contest of Aarohan. The link of the contest is: http://www.spoj.pl/ARHN/ 1st prize $200(1 INR) Its a 2 hour long ACM ICPC styled contest scheduled on 8th February 2012 at 21:00(IST). Thanks Regards. -- You

Re: [algogeeks] help..

2011-07-02 Thread Shalini Sah
i guess the no. of 1s in the binary representation of the number is the answer..for 6 its 2... On Sat, Jul 2, 2011 at 1:32 PM, cegprakash cegprak...@gmail.com wrote: the length of the rope is l units. I can only cut any rope into two halves. for example if the length of the rope is 8 and we

Re: [algogeeks] Re: debugging contest

2011-03-23 Thread Shalini Sah
since u havnt written da break statement...the case '1' also gets executed..and then when the break statement is encountered..the control comes out of the switch case On Wed, Mar 23, 2011 at 8:27 PM, cegprakash cegprak...@gmail.com wrote: why do i get one after default? -- You received this

Re: [algogeeks] Re: debugging contest

2011-03-23 Thread Shalini Sah
now the case 9 is matching so it gets executed...n da break statement is encountered... On Wed, Mar 23, 2011 at 8:35 PM, cegprakash cegprak...@gmail.com wrote: i=9; switch(i){ default: printf(default); case 9: printf(one); break; case '2':

Re: [algogeeks] [brain teaser ] 8march

2011-03-08 Thread Shalini Sah
Stairs :) On Tue, Mar 8, 2011 at 1:33 PM, Lavesh Rawat lavesh.ra...@gmail.com wrote: *Riddle Problem Solution* What goes up and down but doesn't move? *Update Your Answers at* : Click Herehttp://dailybrainteaser.blogspot.com/2011/03/8march.html Solution: Will be updated after 1 day

Re: [algogeeks] c program output

2011-02-07 Thread Shalini Sah
try dis : #includestdio.h int main() { float a=11.202; if((a-11.202)==0) printf(Hiii!!!\n); else printf(Hello!!!\n); return 0; } you will get : Hello!!! On Mon, Feb 7, 2011 at 8:22 PM, ankit agarwal ankitgeniu...@gmail.comwrote: #includestdio.h int

Re: [algogeeks] Re: c program output

2011-02-07 Thread Shalini Sah
i tried it n its running On Mon, Feb 7, 2011 at 8:53 PM, Dave dave_and_da...@juno.com wrote: @Shalini: Did you try it, or are you only speculating? Dave On Feb 7, 9:02 am, Shalini Sah shalinisah.luv4cod...@gmail.com wrote: try dis : #includestdio.h int main() { float a=11.202

Re: [algogeeks] Re: fibonacci problem

2010-12-21 Thread Shalini Sah
, and that there are only 11 even ones less than 4 million. So grab some paper and a pencil or your calculator and add them up. Dave On Dec 20, 9:06 am, Shalini Sah shalinisah.luv4cod...@gmail.com wrote: Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting

[algogeeks] fibonacci problem

2010-12-20 Thread Shalini Sah
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Find the sum of all the even-valued terms in the sequence which do not exceed four million. I'm just a beginner..plz

Re: [algogeeks] Re: please explain the output

2010-11-06 Thread Shalini Sah
firstly evaluate all prefix forms..++a will become 6..then a++ will remain 6..a=7 because postfix form of a will make it so..hence the result 7+6+6=19.. On Sat, Nov 6, 2010 at 9:39 PM, Dave dave_and_da...@juno.com wrote: @Bipul21: This is nonstandard, so the results are compiler-dependent. It