Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Short, Simple, Efficient, Clear solution in Clear category for Stair Steps by StefanPochmann
def checkio(numbers):
a = b = 0
for n in numbers:
a, b = b, n + max(a, b)
return max(a, b)
April 28, 2015
Comments: