in reply to Re: Largest Sum of Consecutive Integers
in thread Largest Sum of Consecutive Integers
Update: The error is my environment not tilly's code!
With -s command line switch disabled, his code produces the following output for the 'failing test':
c:\test>perl tilly.pl -1 -2 -3 -4 -5 -6 -7 -8 -9 Start: 0 End: -1 Sum: 0 Numbers:
which is not totally incorrect.
Your's needs to be a little more complex though.
<p
|
---|