Largest int from concatenated ints: Difference between revisions

Undo revision 154884 by Spoon! Less obscure.
(Undo revision 154884 by Spoon! Less obscure.)
Line 170:
# Python 3
from functools import cmp_to_key
def cmp = lambda (x,y: (x > y) - (x < y):
return -1 if x<y else ( 0 if x==y else 1)
def maxnum(x):
return ''.join(sorted((str(n) for n in x),
Anonymous user