Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Restricted sum solution in Clear category for Restricted Sum by W.Zalicki
def su(list1, index, result):
if index >= len(list1):
return result
return su(list1, index+1, result+list1[index])
def checkio(data):
return su(data,0,0)
Nov. 5, 2017