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