Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4 lines solution in Clear category for Stair Steps by igor.v.dudenko
def checkio(numbers):
cur, prev = 0, 0
for n in numbers + [0]:
prev, cur = cur, max(cur + n, prev + n)
return cur
April 17, 2019