Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by szymonkukla1
def calculate(list, result):
result += list[len(list) - 1]
list.pop()
if(len(list) <= 0):
return(result)
else:
return(calculate(list, result))
def checkio(data):
result = 0
return(calculate(data, result))
Jan. 3, 2017