179. Largest Number (Medium) - TengnanYao/daily_leetcode GitHub Wiki

class Solution(object):
    def largestNumber(self, nums):
        """
        :type nums: List[int]
        :rtype: str
        """
        nums = map(str, nums)
        nums.sort(cmp = lambda a, b: cmp(b + a, a + b))
        return str(int("".join(nums)))