Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Restricted Sum by sebastian.okseniuk
def adding(table, index, score):
# index = table index
# score = total socre of adding
# table = list of int numbers
if index >= len(table):
print(score)
return score # score value
return adding(table, index+1, score+table[index])
def checkio(data):
return adding(data, 0, 0)
checkio([2, 2, 2, 2, 2, 2])
Dec. 10, 2015