[algogeeks] Highest reminder

2013-05-16 Thread Soumya Prasad Ukil
For a given number when divided by a number between 1 and n. I figured out that highest reminder can be got if I divide the number by (⌊(n/2)⌋+1) .Can anyone give me pointers ? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe

Re: [algogeeks] Math problem

2013-05-16 Thread Soumya Prasad Ukil
emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [algogeeks] I am new to CPP STL please help

2013-05-15 Thread Soumya Prasad Ukil
Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe

[algogeeks] Math problem

2013-05-15 Thread Soumya Prasad Ukil
If a+b+c=C1 and ab+bc+ac=C2, how do you get abc? C1,C2 are constant. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving emails from it, send an email

[algogeeks] Re: Cpp problem

2012-05-28 Thread Soumya Prasad Ukil
complex_number const operator =(complex_number temp) const Since, you are returning *this as reference, you have to have const as your return type. You have made your this pointer as constant by appending const keyword at the end of the function signature. But this function has limitation

[algogeeks] Sub-array Sum

2011-08-01 Thread Soumya Prasad Ukil
Given a array A[] and a number x, find the subarray who's sum is equal to x. A[] contains both positive and negative numbers. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] arrays

2011-01-01 Thread Soumya Prasad Ukil
prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group

Re: [algogeeks] Re: amazon interview question

2010-12-24 Thread Soumya Prasad Ukil
. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more

Re: [algogeeks] array

2010-12-17 Thread Soumya Prasad Ukil
is maximum so subarray would be 2,4,-6,-8,10 On Wed, Dec 15, 2010 at 6:23 PM, Soumya Prasad Ukil ukil.sou...@gmail.com wrote: It's a subset-sum problem, I guess. On 15 December 2010 04:12, parth panchal parthpancha...@gmail.comwrote: HI HOW ARE YOU On Tue, Dec 14, 2010 at 7:45 PM

Re: [algogeeks] linkd list

2010-12-15 Thread Soumya Prasad Ukil
of that number it be opposite of 'z' if so return 1 else 0 [above steps is repeated for all elements] *correct me if I am wrong* -- Prashant Kulkarni IISc Bangalore On Wed, Dec 15, 2010 at 10:36 AM, Soumya Prasad Ukil ukil.sou...@gmail.com wrote: Are the linked list sorted

Re: [algogeeks] sort array

2010-12-15 Thread Soumya Prasad Ukil
...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- regards, soumya prasad ukil -- You received this message because you

Re: [algogeeks] array

2010-12-15 Thread Soumya Prasad Ukil
from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- regards, soumya prasad ukil -- You received this message because you are subscribed

Re: [algogeeks] Re: Amazon Interview Question

2010-12-15 Thread Soumya Prasad Ukil
email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- regards, soumya prasad ukil -- You

Re: [algogeeks] Re: largest substring

2010-12-14 Thread Soumya Prasad Ukil
. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options

Re: [algogeeks] Re: Amazon Interview Question

2010-12-14 Thread Soumya Prasad Ukil
://groups.google.com/group/algogeeks?hl=en. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks

Re: [algogeeks] linkd list

2010-12-14 Thread Soumya Prasad Ukil
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com

[algogeeks] C puzzle

2010-10-09 Thread Soumya Prasad Ukil
#includestdio.h main() { char a ='c'; typedef char* charp; const charp p=a; p++; } Why p is a constant pointer ? -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] C puzzle

2010-10-09 Thread Soumya Prasad Ukil
its const pointer On Sun, Oct 10, 2010 at 1:07 AM, Soumya Prasad Ukil ukil.sou...@gmail.com wrote: #includestdio.h main() { char a ='c'; typedef char* charp; const charp p=a; p++; } Why p is a constant pointer ? -- regards, soumya prasad ukil -- You