Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Stair Steps by tokiojapan55
def checkio(numbers):
x0,x1 = 0,numbers[0]
for n in numbers[1:]+[0]:
x2 = max(x0,x1)+n
x0,x1 = x1,x2
return x2
June 17, 2020
Comments: