Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Restricted sum solved solution in Clear category for Restricted Sum by dominieq
def function (array):
array[len(array)-1] = array[len(array)-1] + array[0]
del array[0]
if len(array) > 1:
function(array)
return array[0]
def checkio(data):
data.append(0)
result = function(data)
return result
Nov. 2, 2016