Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Largest Sum of Consecutive Integers

by OverlordQ (Hermit)
on Sep 01, 2006 at 12:19 UTC ( [id://570761] : note . print w/replies, xml ) Need Help??


in reply to Re: Largest Sum of Consecutive Integers
in thread Largest Sum of Consecutive Integers

That's pretty close to what I was thinking, except I couldn't figure out how to get rid of that inside for loop since I missed the obvious way of getting the sum like in your example.
  • Comment on Re^2: Largest Sum of Consecutive Integers