原题链接:Largest Number
题目描述:
Given a list of non negative integers, arrange them such that they form the largest number.
For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.
Note: The result may be very large, so you need to return a string instead of an integer.
Solution:
- 易忽略全为0的情况
- 字符串比较算法
- tostring()的运用
- sort函数
代码:
class Solution
{
public:
//比较函数
static bool compare(