Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by grazik
def checkio(data):
if len(data) == 1:
return data[0]
if len(data) == 2:
return data[0]+data[1]
else:
return checkio([data[0]+data[1]] + data[2:])
Nov. 25, 2016