We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a49924 commit 37e5ed9Copy full SHA for 37e5ed9
2 files changed
lcof/面试题45. 把数组排成最小的数/README.md
@@ -77,8 +77,7 @@ class Solution {
77
return Arrays.stream(nums)
78
.mapToObj(String::valueOf)
79
.sorted((a, b) -> (a + b).compareTo(b + a))
80
- .reduce((a, b) -> a + b)
81
- .orElse("");
+ .collect(Collectors.joining());
82
}
83
84
```
lcof/面试题45. 把数组排成最小的数/Solution.java
@@ -3,7 +3,6 @@ public String minNumber(int[] nums) {
3
4
5
6
7
8
9
-}
+}
0 commit comments