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