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