Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Recurring solution in Clear category for Restricted Sum by Vulwsztyn
def checkio(n):
if len(n)<2:
return(n[0])
else:
print(n[len(n)-2],n[len(n)-1])
n[len(n)-2]+=n[len(n)-1]
n=n[:len(n)-1]
return (checkio(n))
Oct. 22, 2016