Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner, 137 char, fast and efficient solution in Creative category for Most Efficient Cutting by Ylliw
m=most_efficient_cutting=lambda d,r=6000:r if not d else min([r+m(d) if p>r else m(d[:d.index(p)]+d[d.index(p)+1:],r-p) for p in set(d)])
Sept. 16, 2019
Comments: