Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
restricted_sum.py (recursion) solution in Clear category for Restricted Sum by s_m
def checkio(data):
if len(data) == 1: return data[0]
return checkio(data[:-2] + [data[-1] + data[-2]])
July 29, 2018