Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: loop all over the numbers solution in Speedy category for Stair Steps by Stensen
def checkio(numbers, a=0, b=0):
for n in numbers: a, b = b, n + max(a, b)
return max(a, b)
Oct. 9, 2020