Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
py3 unpack solution in Clear category for Stair Steps by Cjkjvfnby
def checkio(numbers):
if not numbers:
return 0
head, *tail = numbers
if not tail:
return max((head, 0))
else:
second_head, *second_tail = tail
return max((head + checkio(tail), second_head + checkio(second_tail)))
June 9, 2014