179. 最大数

自定义排序,(b+a).compareTo(a+b)。

难度:中等。题型:Custom Sort。

标签:数组、字符串、排序、贪心

自定义排序:拼接后按字典序降序。 时间复杂度 O(n log n),空间复杂度 O(n)。