Anonymous user
Largest int from concatenated ints: Difference between revisions
m
→Python: Sort on comparison of concatenated ints method
Line 175:
def maxnum(x):
return ''.join(sorted((str(n) for n in x),
key=cmp_to_key(lambda x,y:cmp
for numbers in [(1, 34, 3, 98, 9, 76, 45, 4), (54, 546, 548, 60):
|