Re: [algogeeks] Re: Amazon Dynamic Programming problem

2013-01-12 Thread kumar anurag
yes the below logic is correct 1- 1st(1) 2- 1st(2) 3- 2nd(1,2 or 2,1) 4- 1st (1,2,1 or 1,1,2) 5-1st(2, 1, 2 or 2, 2, 1) 6- 2nd(2, 1, 3) or 1, 2,3)) 2nd will win 7- 1st(1, 1, 2, 3 or 1, 2, 1,3 or .,. 8- 1st (2, 1, 2, 3 or 2, 2,1, 3 or .. In above 3 can be (1,2) or (2,1) Thanks Kumar Anurag

Re: [algogeeks] Adobe written test question

2012-10-25 Thread kumar anurag
in fy2 , the variable arr[10] has not been declared and hence it should display error message while compiling Thanks Kumar Anurag On Wed, Oct 24, 2012 at 11:06 PM, rahul sharma rahul23111...@gmail.comwrote: int arr[10] // in fyl 1 now in fyl 2 extern int *arr void foo() { arr[0]=10

Re: [algogeeks] Re: An interesting question

2011-09-17 Thread kumar anurag
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. -- Kumar Anurag

Re: [algogeeks] Another SPOJ Problem -SIGSEGV -- Need Help

2011-05-23 Thread kumar anurag
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. -- Kumar Anurag -- You received this message because you are subscribed

Re: [algogeeks] Another SPOJ Problem -SIGSEGV -- Need Help

2011-05-23 Thread kumar anurag
. 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. -- Kumar Anurag -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Candy_splitting in GCJ

2011-05-11 Thread kumar anurag
and 3 3 5 6 On Mon, May 9, 2011 at 12:10 AM, kumar anurag anurag.it.jo...@gmail.comwrote: find xor of all elements - if its equal to zeo then Case has solution otherwise NO for finding the soltuion just sort all the elements and find the (sum of all -sum of smallest).. On Sun, May 8

Re: [algogeeks] Candy_splitting in GCJ

2011-05-08 Thread kumar anurag
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Kumar Anurag -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] [brain teaser ] 25march

2011-03-25 Thread kumar anurag
://groups.google.com/group/algogeeks?hl=en. -- Kumar Anurag -- 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] Re: power of 2

2011-03-20 Thread kumar anurag
@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. -- Kumar Anurag -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] Re: power of 2

2011-03-20 Thread kumar anurag
try to find the MSB position of the binary form of number. Then position+1 should be the answer On Sun, Mar 20, 2011 at 2:27 PM, kumar anurag anurag.it.jo...@gmail.comwrote: in gcc it is found in math.h On Sun, Mar 20, 2011 at 2:16 PM, cegprakash cegprak...@gmail.com wrote: how to find

Re: [algogeeks] Re: power of 2

2011-03-20 Thread kumar anurag
@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. -- Kumar Anurag -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] How to print numbers from 1 to 100 without loop , without recursion , without #define statements , without goto statement

2011-03-16 Thread kumar anurag
/algogeeks?hl=en. -- Kumar Anurag -- 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

Re: [algogeeks] How to print numbers from 1 to 100 without loop , without recursion , without #define statements , without goto statement

2011-03-16 Thread kumar anurag
ok guys... On Wed, Mar 16, 2011 at 9:54 PM, himanshu kansal himanshukansal...@gmail.com wrote: class arr {static int i; public: arr() { couti++; } }; int arr::i=1; int main() { arr a[100]; } On Wed, Mar 16, 2011 at 9:47 PM, kumar anurag anurag.it.jo...@gmail.comwrote

Re: [algogeeks] Brainfuck compiler

2011-03-15 Thread kumar anurag
@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. -- Kumar Anurag -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Brainfuck compiler

2011-03-15 Thread kumar anurag
the code is attached , u can covert bf program to c , more info is in the file On Wed, Mar 16, 2011 at 12:43 AM, Saikat Debnath crazysai...@gmail.comwrote: @ kumar anurag : Can you please upload the code... On Wed, Mar 16, 2011 at 12:35 AM, Carl Barton odysseus.ulys...@gmail.comwrote

Re: [algogeeks] spoj problem

2011-03-12 Thread kumar anurag
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Kumar Anurag -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group