Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bigger Together by Moff
from functools import cmp_to_key
def bigger_together(ints):
ns = sorted(map(str, ints), key=cmp_to_key(lambda x, y: int(x + y) - int(y + x)))
return int(''.join(reversed(ns))) - int(''.join(ns))
Aug. 4, 2017
Comments: