Solutions for Big Sum

    • @Geraldpof
    • @Charles, submitted in Python 3, achived 100% score
    def solve(array):
        previous, largest = 0, 0
        for amount in array:
            #print("amount: {}; previous: {}; largest: {}".format(amount, previous, largest))
            previous, largest = largest, max(largest, previous + amount)
            #print("new_previous: {}; new_largest: {}".format(previous, largest))
        return largest