Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Stair Steps by kurosawa4434
def checkio(numbers, total=0, max_total=-1000):
if not numbers:
return max(total, max_total)
return max(checkio(numbers[1:], total + numbers[0], max_total),
checkio(numbers[2:], total + sum(numbers[1:2]), max_total))
July 23, 2016
Comments: