Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
using recursive solution in Clear category for Restricted Sum by fierce_mark
def r(input_l: list, result = 0) -> int:
if input_l == []:
return result
result += input_l[0]
return r(input_l[1:], result)
def checkio(input_l: list) -> int:
return r(input_l)
Nov. 13, 2018
Comments: