Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
306 B
0
Indexable
Never
from bigO import *
lib = BigO()


def paparia(numbers):
    subtraction = []
    for i, value in enumerate(numbers):
        if i >= 1:
            result = numbers[i]-numbers[i-1]
            subtraction.insert(i, result)
            print(subtraction)
    print(max(subtraction))


lib.test_all(paparia)