**Solution**

**Largest Number** https://leetcode.com/problems/largest-number/?tab=Description

**Algorithm**

- Use Python's cmp method to compare "5", "9". "59" < "95".
- https://docs.python.org/3/howto/sorting.html

```
class Solution(object):
def largestNumber(self, nums):
"""
:type nums: List[int]
:rtype: str
"""
if sum(nums) == 0:
return "0"
nums = [str(x) for x in nums]
nums.sort(cmp=lambda x,y:int(y+x) - int(x+y))
return "".join(nums)
```