Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by Yeti
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)
Nov. 18, 2016