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