Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Loading Cargo by kurosawa4434
def checkio(data, left=0, right=0, min_diff=1000):
if not data:
return min(abs(left - right), min_diff)
return min(checkio(data[1:], left + data[0], right, min_diff),
checkio(data[1:], left, right + data[0], min_diff))
Aug. 19, 2016
Comments: