179 Largest Number
Given a list of non negative integers, arrange them such that they form the largest number.
Notice
The result may be very large, so you need to return a string instead of an integer.
Example
Given[1, 20, 23, 4, 8]
, the largest formed number is8423201
.
Do it in O(nlogn) time complexity.
想了很久,原来能用排序。这...
Last updated