class Solution(object):
def minNumber(self, nums):
"""
:type nums: List[int]
:rtype: str
"""
if len(nums) == 0:
return None
compare = lambda a, b : cmp(str(a) + str(b), str(b) + str(a))
min_str = sorted(nums, cmp=compare)
return ''.join(str(x) for x in min_str)
09-12
1585