Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Loading Cargo by tokiojapan55
from functools import reduce
def checkio(data):
table = {0}
for d in data:
table = reduce(lambda a,b:a|{abs(d+b),abs(d-b)}, table, set())
return min(table)
June 22, 2020
Comments: