Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Creative category for Loading Cargo by Pouf
from itertools import combinations
checkio=lambda w:min(set([abs(sum(w)-2*sum(p[i]))for p in[list(combinations(w, n))for n in range(1, len(w)+1)]for i in range(len(p))]))
March 24, 2014