Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
318 B
4
Indexable
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(paparia, "random", 5000)