Re: [algogeeks] Re: Coding Ques..............

2011-07-22 Thread Rajeev Kumar
check
http://tech-queries.blogspot.com/2009/05/max-possible-sum-of-non-consecutive.html

On Wed, Jul 20, 2011 at 11:58 PM, sunny agrawal wrote:

> Just take an extra array that will keep track of the values from which we
> get the best in solution to that thread.
>
>
>
> On Thu, Jul 21, 2011 at 8:55 AM, UMESH KUMAR wrote:
>
>> Hi
>> @Somnath my question is some different
>>
>> if given array :3,2,7,10
>> So according to last discussion Only Out put is *13 *not the show
>> elements
>> Output :: {3,10}
>>
>> So basically my question is that how to pick all elements that return max
>> sum
>>
>> Thanks..
>>
>>  --
>> 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.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Sunny Aggrawal
> B-Tech IV year,CSI
> Indian Institute Of Technology,Roorkee
>
>
>  --
> 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.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Thank You
Rajeev 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 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: Coding Ques..............

2011-07-20 Thread sunny agrawal
Just take an extra array that will keep track of the values from which we
get the best in solution to that thread.



On Thu, Jul 21, 2011 at 8:55 AM, UMESH KUMAR wrote:

> Hi
> @Somnath my question is some different
>
> if given array :3,2,7,10
> So according to last discussion Only Out put is *13 *not the show
> elements
> Output :: {3,10}
>
> So basically my question is that how to pick all elements that return max
> sum
>
> Thanks..
>
>  --
> 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.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: Coding Ques..............

2011-07-20 Thread UMESH KUMAR
Hi
@Somnath my question is some different

if given array :3,2,7,10
So according to last discussion Only Out put is *13 *not the show elements
Output :: {3,10}

So basically my question is that how to pick all elements that return max
sum

Thanks..

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Coding Ques..............

2011-07-20 Thread SAMMM
http://groups.google.com/group/algogeeks/browse_thread/thread/2ada4a0cd27036c2


This has already been discussed follow the above link .

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.