问题
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 is9534330
.Note: The result may be very large, so you need to return a string instead of an integer.
翻译:
有一组非负整数,排列他们来获得一个最大的数。
例如,如果给了
[3, 30, 34, 5, 9]
,那最大的数就是9534330
。注意: 结果可能非常大,所以需要返回一个字符串(string)类型的数字而不是整型(integer)的。