Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by mz97
def checkio(data):
def su(lista,i,s):
if i==0:
s=lista[i]
i+=1
return su(lista,i,s)
elif i==len(lista):
return s
else:
s=s+lista[i]
i+=1
return su(lista,i,s)
j=0
sx=0
return su(data,j,sx)
Oct. 15, 2016