On 3/20/06, vb <
[EMAIL PROTECTED]> wrote:
Hi all,
How can we find the the maximum sum of atleast L consecutive integers
given a sequence of N integers.
The brute force approach of forming all possible length sequences at
every index and finding their sum gives an O(N^2) solution which is not
desirable.
Can somebody tell me a better approach for this ? [EMAIL PROTECTED]
-------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---
- [algogeeks] How to find, efficiently, the maximum sum of atle... vb
- [algogeeks] Re: How to find, efficiently, the maximum su... manu jose
- [algogeeks] Re: How to find, efficiently, the maximum su... Mattia Merzi
