Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
dynamic programming solution in Clear category for Stair Steps by juestr
def checkio(numbers):
step1, step2 = 0, 0
while numbers:
step1, step2 = numbers.pop() + max(step1, step2), step1
return max(step1, step2)
July 26, 2019
Comments: