http://www.perlmonks.org?node_id=570494


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

the largest sum is always going to be: add up all positive integers in the array and exclude negatives. as adding is communicative, order of the array and sequence of the add operation doesn't make any difference.
the hardest line to type correctly is: stty erase ^H