Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: enumerate next eval solution in Creative category for Can Balance by przemyslaw.daniel
can_balance = lambda d, e=enumerate: next((x for x, _ in e(d)
if not eval('+'.join(f'{v}*({x}-{i})' for i, v in e(d)))), -1)
Dec. 13, 2018
Comments: