Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: functools.cmp_to_key is a useful sorting key solution in Clear category for Bigger Together by Stensen
from functools import cmp_to_key
def bigger_together(ints):
s = sorted(map(str, ints), key=cmp_to_key(lambda i, j: int(i+j)-int(j+i)))
return int(''.join(reversed(s))) - int(''.join(s))
Oct. 5, 2020