Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Largest Sum of Consecutive Integers

by wojtyk (Friar)
on Aug 30, 2006 at 19:10 UTC ( [id://570456]=note: print w/replies, xml ) Need Help??


in reply to Largest Sum of Consecutive Integers

Are you sure that's not O(n*log(n))?
It looks like your basic divide-and-conquer

Speaking of which, that's actually how I envisioned solving this, only utilizing medians (aka, divide list, find median, then recompute new list indexes based on the median values)

  • Comment on Re: Largest Sum of Consecutive Integers

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found