Maximum sub-array – codegolf.stackexchange.com

Define the “maximum sub-array” of a given array as “a (consecutive) sub-array that has the biggest sum”. Note there’s no “non-zero” requirement. Output that sum.

Give a description of your code if …

For Get Answer – Click here

Leave a Reply

Your email address will not be published. Required fields are marked *