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