由网友(小呀么小土豪)分享简介:说我有积极的整体整数数组;我想操纵顺序,以使所得到的阵列的串联数量最多的是可能的。例如 [97,9,13] 的结果 99713 ; [9,1,95,17,5] 的结果 9955171 。我不知道一个答案。Say I have an array of positive whole integers; I'd like...
说我有积极的整体整数数组;我想操纵顺序,以使所得到的阵列的串联数量最多的是可能的。例如 [97,9,13]
的结果 99713
; [9,1,95,17,5]
的结果 9955171
。我不知道一个答案。
Say I have an array of positive whole integers; I'd like to manipulate the order so that the concatenation of the resultant array is the largest number possible. For example [97, 9, 13]
results in 99713
; [9,1,95,17,5]
results in 9955171
. I'm not sure of an answer.
推荐答案
排序(X,CMP =拉姆达A,B:-1,如果STR(B)+ STR(一)< STR( A)+ STR(二)其他1)
相关推荐
最新文章